• <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


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

            常用鏈接

            留言簿(94)

            隨筆分類(649)

            隨筆檔案(505)

            相冊(cè)

            BCB

            Crytek

            • crymod
            • Crytek's Offical Modding Portal

            Game Industry

            OGRE

            other

            Programmers

            Qt

            WOW Stuff

            搜索

            •  

            積分與排名

            • 積分 - 917349
            • 排名 - 14

            最新隨筆

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜





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

            多個(gè)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 七星重劍 閱讀(1447) 評(píng)論(0)  編輯 收藏 引用 所屬分類: Game GraphicsGame EngineOGRE
            久久婷婷五月综合成人D啪| 99久久er这里只有精品18| 久久久久人妻一区精品果冻| 久久综合伊人77777麻豆| 色老头网站久久网| 久久久久一区二区三区| 欧美精品九九99久久在观看| 久久精品国产精品青草app| 香蕉aa三级久久毛片| 狠狠色丁香婷婷综合久久来| 日日狠狠久久偷偷色综合96蜜桃| 久久发布国产伦子伦精品| 色播久久人人爽人人爽人人片aV| 精品无码久久久久国产| 2021国产精品久久精品| 久久福利片| 91麻精品国产91久久久久| 亚洲中文字幕无码久久2020| 亚洲国产成人精品女人久久久 | 91精品国产91久久久久久| 国产色综合久久无码有码| 久久久久亚洲AV成人网人人软件| 久久国产高潮流白浆免费观看| 久久中文字幕精品| 久久久久99精品成人片牛牛影视| 久久99国产精品久久| 亚洲综合伊人久久大杳蕉| 久久久久久久久久久久久久| 欧洲国产伦久久久久久久| 久久久精品视频免费观看| 久久精品国产99久久久香蕉| 色综合久久综精品| 情人伊人久久综合亚洲| 996久久国产精品线观看| 狠狠色丁香久久综合五月| 国产亚洲婷婷香蕉久久精品| 久久精品国产91久久麻豆自制| 午夜不卡888久久| 久久久久久久久久久免费精品| 久久久久免费视频| 少妇熟女久久综合网色欲|