• <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
            中文精品99久久国产 | 最新久久免费视频| 欧美色综合久久久久久| 日韩精品久久久久久免费| 中文字幕成人精品久久不卡| 女人高潮久久久叫人喷水| 狠狠色噜噜狠狠狠狠狠色综合久久 | 国产亚洲美女精品久久久| 久久久久亚洲AV无码观看| 国产精品久久久久久| 亚洲Av无码国产情品久久| 久久99国产精品一区二区| 伊人久久大香线蕉亚洲| 久久九色综合九色99伊人| 国产午夜久久影院| 色综合久久久久综合体桃花网 | 久久久久久极精品久久久| 国产成人精品久久免费动漫| 午夜精品久久久久久久久| 久久青青草视频| 久久人人爽人人澡人人高潮AV| 狠狠色丁香久久婷婷综| 久久超碰97人人做人人爱| 亚洲精品国产美女久久久| 囯产极品美女高潮无套久久久 | 国产成人精品久久| 亚洲午夜精品久久久久久浪潮| 国产精品美女久久久免费| 99久久婷婷国产综合精品草原| 欧美亚洲国产精品久久| 久久只有这精品99| 久久久久亚洲av成人网人人软件| 欧美性大战久久久久久| 要久久爱在线免费观看| 午夜视频久久久久一区 | 91精品国产综合久久婷婷| 青青草原精品99久久精品66| 欧美va久久久噜噜噜久久| 久久精品国产男包| 人妻无码αv中文字幕久久| 999久久久无码国产精品|