• <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
            人妻无码中文久久久久专区| 久久久久18| yy6080久久| 午夜视频久久久久一区 | 久久精品国产99久久久古代| 麻豆久久| 亚洲欧美久久久久9999| 四虎久久影院| 一级A毛片免费观看久久精品| 日本加勒比久久精品| 久久久久久国产精品美女| 久久久久久久综合狠狠综合| 久久亚洲AV成人无码软件| 亚洲中文久久精品无码ww16| 久久夜色精品国产噜噜麻豆| 国产精品久久波多野结衣| 久久se精品一区精品二区| 久久亚洲综合色一区二区三区| 久久亚洲高清观看| 99久久免费国产精品| 伊人色综合久久天天人守人婷| 久久精品aⅴ无码中文字字幕不卡| 精产国品久久一二三产区区别| 国产aⅴ激情无码久久| 亚洲AV乱码久久精品蜜桃| 久久天天躁狠狠躁夜夜96流白浆| 国产精品久久毛片完整版| 狠狠色丁香婷婷综合久久来来去| 精品无码久久久久久国产| 久久亚洲AV无码精品色午夜麻豆| 精品久久久久久国产潘金莲| 品成人欧美大片久久国产欧美| 亚洲人成无码网站久久99热国产 | 青青草原综合久久大伊人导航| 97精品国产97久久久久久免费| 一本大道久久a久久精品综合| 2021国内久久精品| 色综合合久久天天综合绕视看 | 99久久免费只有精品国产| 久久人人爽人人人人片av| 久久国产精品波多野结衣AV|