• <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
            <2007年8月>
            2930311234
            567891011
            12131415161718
            19202122232425
            2627282930311
            2345678


            子曾經曰過:編程無他,唯手熟爾!

            常用鏈接

            留言簿(94)

            隨筆分類(649)

            隨筆檔案(505)

            相冊

            BCB

            Crytek

            • crymod
            • Crytek's Offical Modding Portal

            Game Industry

            OGRE

            other

            Programmers

            Qt

            WOW Stuff

            搜索

            •  

            積分與排名

            • 積分 - 911304
            • 排名 - 14

            最新隨筆

            最新評論

            閱讀排行榜

            評論排行榜





            材質用的是這個文件中的
            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,我轉成jpg了)






            posted on 2008-04-30 00:15 七星重劍 閱讀(1441) 評論(0)  編輯 收藏 引用 所屬分類: Game GraphicsGame EngineOGRE
            久久久久久久久无码精品亚洲日韩| 99久久99这里只有免费的精品| 国产 亚洲 欧美 另类 久久| 久久se精品一区精品二区| 久久精品国产精品青草| 久久久久国产成人精品亚洲午夜| 亚洲色欲久久久久综合网| 久久综合噜噜激激的五月天| 亚洲午夜久久久精品影院| 久久久久青草线蕉综合超碰| 国产精品一久久香蕉国产线看| 国产激情久久久久影院小草| 久久久午夜精品福利内容| 久久电影网2021| 婷婷伊人久久大香线蕉AV| 青青久久精品国产免费看| 97久久超碰国产精品旧版| 亚洲午夜久久久久妓女影院| 99久久夜色精品国产网站| 久久国产精品77777| 久久夜色精品国产噜噜亚洲a| 久久久91精品国产一区二区三区 | 99精品久久久久中文字幕| 色天使久久综合网天天| 国产精品内射久久久久欢欢| www.久久热.com| 亚洲午夜久久久影院| 久久精品国产亚洲av麻豆蜜芽| 午夜精品久久影院蜜桃| 久久久精品久久久久特色影视| 久久精品国产只有精品2020| 久久久噜噜噜www成人网| 午夜精品久久久久久久| 狠狠色丁香久久婷婷综合| 色综合久久夜色精品国产| 久久亚洲精品无码观看不卡| 国产日韩久久久精品影院首页| 99精品伊人久久久大香线蕉| 免费国产99久久久香蕉| 久久精品亚洲欧美日韩久久| 久久激情五月丁香伊人|