• <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年3月>
            2425262728291
            2345678
            9101112131415
            16171819202122
            23242526272829
            303112345


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

            常用鏈接

            留言簿(94)

            隨筆分類(649)

            隨筆檔案(505)

            相冊

            BCB

            Crytek

            • crymod
            • Crytek's Offical Modding Portal

            Game Industry

            OGRE

            other

            Programmers

            Qt

            WOW Stuff

            搜索

            •  

            積分與排名

            • 積分 - 911585
            • 排名 - 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
            亚洲狠狠久久综合一区77777| 久久青青草原亚洲av无码| 中文字幕无码久久精品青草| 久久精品成人欧美大片| 国内精品久久久久影院日本| 久久996热精品xxxx| 久久婷婷午色综合夜啪| 欧美亚洲另类久久综合| 狠狠色丁香久久婷婷综合蜜芽五月| 久久久久人妻精品一区| 精品国产青草久久久久福利| 欧美黑人激情性久久| 四虎久久影院| 精品久久久久中文字| 久久久久久亚洲精品成人| 人妻无码αv中文字幕久久琪琪布| 69SEX久久精品国产麻豆| 亚洲国产天堂久久综合| 99久久婷婷国产一区二区| 国产精品久久久久jk制服| 日产精品久久久久久久性色| 久久人人爽人人精品视频| 亚洲国产成人久久综合一| 久久99精品久久久久婷婷| 色婷婷综合久久久中文字幕| 99久久做夜夜爱天天做精品| 久久久久噜噜噜亚洲熟女综合| 国产精品久久久久无码av| …久久精品99久久香蕉国产| 亚洲精品乱码久久久久久蜜桃图片| 18禁黄久久久AAA片| 亚洲综合久久夜AV | 精品久久久久久久国产潘金莲| 亚洲人成无码网站久久99热国产 | 国产亚洲色婷婷久久99精品| 尹人香蕉久久99天天拍| 亚洲精品NV久久久久久久久久 | 91麻豆精品国产91久久久久久| 精品久久久久久无码专区不卡| 国产精品久久久久久搜索| AAA级久久久精品无码区|