• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            隨筆 - 505  文章 - 1034  trackbacks - 0
            <2007年8月>
            2930311234
            567891011
            12131415161718
            19202122232425
            2627282930311
            2345678


            子曾經(jīng)曰過:編程無他,唯手熟爾!

            常用鏈接

            留言簿(94)

            隨筆分類(649)

            隨筆檔案(505)

            相冊(cè)

            BCB

            Crytek

            • crymod
            • Crytek's Offical Modding Portal

            Game Industry

            OGRE

            other

            Programmers

            Qt

            WOW Stuff

            搜索

            •  

            積分與排名

            • 積分 - 917349
            • 排名 - 14

            最新隨筆

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜





            材質(zhì)用的是這個(gè)文件中的
            ogrenew\Samples\Media\materials\scripts\OffsetMapping.material

            多個(gè)technique,硬件不支持牛B的效果還有最后的technique來墊底

            material Examples/OffsetMapping/Specular 


              
            // This is the preferred technique which uses both vertex and 
               
            // fragment programs, supports coloured lights 
               technique 
               { 
                  
            // do the lighting  and bump mapping with parallax pass 
                  pass 
                  { 
                   
                     
            // Vertex program reference 
                     vertex_program_ref Examples/OffsetMappingVP 
                     { 
                        param_named_auto lightPosition light_position_object_space 
            0 
                        param_named_auto eyePosition camera_position_object_space 
                        param_named_auto worldViewProj worldviewproj_matrix 
                     } 

                     
            // Fragment program 
                     fragment_program_ref Examples/OffsetMappingFP
                     { 
                        param_named_auto lightDiffuse light_diffuse_colour 
            0 
                        param_named_auto lightSpecular light_specular_colour 
            0 
                        
            // Parallax Height scale and bias 
                        param_named scaleBias float4 0.04 -0.02 1 0 
                     } 
                      
                     
            // Normal + height(alpha) map 
                     texture_unit 
                     { 
                        texture rockwall_NH.tga
                        tex_coord_set 
            0 
                     } 

                     
            // Base diffuse texture map 
                     texture_unit 
                     { 
                        texture rockwall.tga
                        tex_coord_set 
            1 
                     } 
                  } 
               } 


               
            // This is the preferred technique which uses both vertex and 
               
            // fragment programs, supports coloured lights 
               technique 
               { 
                  
            // do the lighting  and bump mapping with parallax pass 
                  pass 
                  { 
                   
                     
            // Vertex program reference 
                     vertex_program_ref Examples/OffsetMappingVP 
                     { 
                        param_named_auto lightPosition light_position_object_space 
            0 
                        param_named_auto eyePosition camera_position_object_space 
                        param_named_auto worldViewProj worldviewproj_matrix 
                     } 

                     
            // Fragment program 
                     fragment_program_ref Examples/OffsetMappingPS 
                     { 
                        param_indexed_auto 
            0 light_diffuse_colour 0 
                        param_indexed_auto 
            1 light_specular_colour 0 
                        
            // Parallax Height scale and bias 
                        param_indexed 2 float4 0.04 -0.02 1 0 
                     } 
                      
                     
            // Normal + height(alpha) map 
                     texture_unit 
                     { 
                        texture rockwall_NH.tga
                        tex_coord_set 
            0 
                     } 

                     
            // Base diffuse texture map 
                     texture_unit 
                     { 
                        texture rockwall.tga
                        tex_coord_set 
            1 
                     } 
                  } 
               } 
               
               
            // Simple no-shader fallback
               technique 
               { 
                  pass 
                  { 
                     
            // Base diffuse texture map 
                     texture_unit 
                     { 
                        texture rockwall.tga
                     } 
                  }
               }

            }

            rockwall.tga (這兒不能貼tga,我轉(zhuǎn)成jpg了)






            posted on 2008-04-30 00:15 七星重劍 閱讀(1447) 評(píng)論(0)  編輯 收藏 引用 所屬分類: Game GraphicsGame EngineOGRE
            久久久久亚洲av无码专区喷水| 色偷偷久久一区二区三区| 狠狠色丁香婷婷综合久久来 | 国产999精品久久久久久| 久久成人精品| 国内精品久久人妻互换| 欧美激情精品久久久久久久九九九 | 久久久综合香蕉尹人综合网| 久久精品国产99国产精品导航 | 一级a性色生活片久久无少妇一级婬片免费放| 日本国产精品久久| 国产精品九九九久久九九| 亚洲另类欧美综合久久图片区| 日韩一区二区久久久久久| 久久无码国产专区精品| 久久这里有精品视频| 久久精品成人国产午夜| 久久久免费精品re6| 久久综合久久综合亚洲| 精品久久久久中文字幕一区| 亚洲精品乱码久久久久久蜜桃图片| 国内精品久久久久久中文字幕| 色欲综合久久中文字幕网| 青青热久久国产久精品| 九九久久精品无码专区| 99久久国产免费福利| 久久精品国产99国产电影网| 久久久久亚洲精品天堂| 无码人妻久久一区二区三区免费丨 | 久久只有这精品99| 久久国产美女免费观看精品 | 91精品国产综合久久精品| 亚洲午夜久久久久久久久电影网 | 99久久99久久精品国产片果冻| 嫩草影院久久国产精品| 国产激情久久久久影院小草| 国产亚洲成人久久| 久久国产高清一区二区三区| 久久免费香蕉视频| 久久精品国产亚洲av麻豆蜜芽| 久久精品国产免费观看|