• <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
            <2012年6月>
            272829303112
            3456789
            10111213141516
            17181920212223
            24252627282930
            1234567


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

            常用鏈接

            留言簿(94)

            隨筆分類(649)

            隨筆檔案(505)

            相冊

            BCB

            Crytek

            • crymod
            • Crytek's Offical Modding Portal

            Game Industry

            OGRE

            other

            Programmers

            Qt

            WOW Stuff

            搜索

            •  

            積分與排名

            • 積分 - 914468
            • 排名 - 14

            最新隨筆

            最新評論

            閱讀排行榜

            評論排行榜





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

            多個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) 評論(0)  編輯 收藏 引用 所屬分類: Game GraphicsGame Engine 、OGRE
            色欲综合久久躁天天躁蜜桃| 久久www免费人成精品香蕉| 久久精品视频一| 性欧美丰满熟妇XXXX性久久久| 久久久久亚洲av无码专区喷水| 久久电影网一区| 久久无码一区二区三区少妇 | 亚洲伊人久久成综合人影院| 色偷偷88欧美精品久久久| 久久国产亚洲高清观看| 91精品久久久久久无码| 亚洲中文字幕久久精品无码APP | 精品国产乱码久久久久久呢 | 午夜视频久久久久一区 | 热re99久久精品国产99热| 久久精品国产亚洲av麻豆图片| 国产欧美久久一区二区| 无遮挡粉嫩小泬久久久久久久| 伊人久久免费视频| 久久精品国产亚洲av日韩| 一级女性全黄久久生活片免费 | 亚洲中文字幕伊人久久无码| 欧美精品一本久久男人的天堂| 亚洲中文字幕久久精品无码APP | 日本人妻丰满熟妇久久久久久| 久久免费大片| 看全色黄大色大片免费久久久 | 久久精品免费一区二区三区| 精品国产乱码久久久久久呢 | 久久久久国产精品嫩草影院| 久久精品国产一区二区三区| 激情五月综合综合久久69| 国产精品久久久久乳精品爆 | 午夜视频久久久久一区| 开心久久婷婷综合中文字幕| 欧美日韩精品久久久久| 欧美精品丝袜久久久中文字幕| 久久久精品视频免费观看| 日本欧美国产精品第一页久久| 久久青青国产| 久久久无码精品亚洲日韩京东传媒 |