• <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
            <2008年12月>
            30123456
            78910111213
            14151617181920
            21222324252627
            28293031123
            45678910


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

            常用鏈接

            留言簿(94)

            隨筆分類(649)

            隨筆檔案(505)

            相冊(cè)

            BCB

            Crytek

            • crymod
            • Crytek's Offical Modding Portal

            Game Industry

            OGRE

            other

            Programmers

            Qt

            WOW Stuff

            搜索

            •  

            積分與排名

            • 積分 - 917335
            • 排名 - 14

            最新隨筆

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜





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

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

            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女| 青青青青久久精品国产h| 一个色综合久久| www亚洲欲色成人久久精品| 日韩精品久久久久久免费| 久久夜色撩人精品国产小说| 国产韩国精品一区二区三区久久| 四虎久久影院| 久久国产香蕉视频| 无码人妻精品一区二区三区久久久 | 亚洲国产成人久久综合一区77 | 久久人做人爽一区二区三区| 国产毛片久久久久久国产毛片| 亚洲精品无码成人片久久| 亚洲国产成人久久综合一区77 | 久久大香香蕉国产| 欧美精品乱码99久久蜜桃| 久久伊人色| 久久九九久精品国产| 91久久精品视频| 91亚洲国产成人久久精品| 久久久久久综合一区中文字幕| 久久婷婷五月综合国产尤物app| 久久久久久精品成人免费图片| 久久中文精品无码中文字幕| 9999国产精品欧美久久久久久| 狠狠色丁香婷婷综合久久来| 99久久精品毛片免费播放| 久久狠狠高潮亚洲精品| 久久久精品人妻一区二区三区蜜桃| 久久www免费人成看片| 久久久亚洲AV波多野结衣| 少妇无套内谢久久久久| 久久精品日日躁夜夜躁欧美| 色婷婷综合久久久中文字幕 | 久久99精品国产麻豆婷婷|