• <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
            <2025年6月>
            25262728293031
            1234567
            891011121314
            15161718192021
            22232425262728
            293012345


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

            常用鏈接

            留言簿(94)

            隨筆分類(649)

            隨筆檔案(505)

            相冊(cè)

            BCB

            Crytek

            • crymod
            • Crytek's Offical Modding Portal

            Game Industry

            OGRE

            other

            Programmers

            Qt

            WOW Stuff

            搜索

            •  

            積分與排名

            • 積分 - 914497
            • 排名 - 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 七星重劍 閱讀(1444) 評(píng)論(0)  編輯 收藏 引用 所屬分類: Game GraphicsGame EngineOGRE
            亚洲欧美日韩久久精品第一区| 久久综合中文字幕| 亚洲精品无码久久不卡| 一本色道久久88综合日韩精品| 久久国产色av免费看| 久久国产乱子伦精品免费强| 国产精品久久影院| 久久久久人妻一区精品果冻| 亚洲精品白浆高清久久久久久 | 99久久精品国产一区二区| 精品国产乱码久久久久久1区2区| 欧美久久综合性欧美| 国产A级毛片久久久精品毛片| 日本一区精品久久久久影院| 久久综合九色综合网站| 嫩草影院久久国产精品| 精品久久久久久国产| 国产巨作麻豆欧美亚洲综合久久 | 国内精品久久国产大陆| 久久综合九色综合网站| 亚洲国产精品久久久久久| 亚洲精品无码久久一线| 久久综合久久伊人| 国内精品久久久久久久影视麻豆 | 香蕉久久夜色精品升级完成| AA级片免费看视频久久| AV无码久久久久不卡网站下载| 亚洲国产视频久久| 久久人人爽人人爽人人片AV东京热| 国产精品久久久久久久久免费| 国产精品亚洲综合久久| 久久99精品久久久久久9蜜桃| 久久狠狠色狠狠色综合| 久久久久久国产精品免费无码| 久久婷婷五月综合色奶水99啪 | 久久93精品国产91久久综合| 国产精品久久网| 精品精品国产自在久久高清 | 91精品婷婷国产综合久久| 国产综合久久久久| 久久99精品国产|