• <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
            久久精品免费大片国产大片| 久久亚洲天堂| 久久精品免费观看| 国内精品久久久久久久涩爱| 久久乐国产综合亚洲精品| 国产亚洲精久久久久久无码77777 国产亚洲精品久久久久秋霞 | 日韩一区二区三区视频久久| 久久只有这里有精品4| 麻豆AV一区二区三区久久| 国产午夜久久影院| 久久亚洲国产精品五月天婷| 无码专区久久综合久中文字幕| 99国产欧美久久久精品蜜芽| 亚洲国产成人精品无码久久久久久综合| 久久精品国产亚洲αv忘忧草| 精品久久久久久久| 中文国产成人精品久久亚洲精品AⅤ无码精品| 久久WWW免费人成一看片| 99久久国产亚洲高清观看2024 | 精品久久久久中文字| 亚洲精品乱码久久久久久中文字幕 | 久久久久亚洲AV成人片| 中文字幕精品无码久久久久久3D日动漫 | 女人香蕉久久**毛片精品| 久久久噜噜噜久久中文字幕色伊伊 | 性高湖久久久久久久久| 欧美与黑人午夜性猛交久久久 | 久久综合久久综合亚洲| 久久高潮一级毛片免费| 99久久综合国产精品二区| 久久人人爽爽爽人久久久| 亚洲精品蜜桃久久久久久| 色综合久久久久综合体桃花网| 亚洲欧美一级久久精品| 久久久久婷婷| 久久久久久久久66精品片| 人妻精品久久久久中文字幕| 亚洲伊人久久综合中文成人网| 亚洲国产天堂久久综合| 亚洲国产成人久久笫一页| 久久午夜福利电影|