Changeset 2157


Ignore:
Timestamp:
02/22/07 23:12:59 (17 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/App/Demos/Illum/Ogre/Media/Demo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/Media/Demo/bump.hlsl

    r2152 r2157  
    7676                OUT.mLight = wLightPos.xyz - wPos * wLightPos.w; 
    7777 
    78                 OUT.wTangent = normalize(mul(WorldI,float4(IN.Tangent, 1))); 
    79                 OUT.wNormal = normalize(mul(WorldI,float4(IN.Normal, 1)));               
     78                OUT.wTangent = normalize(mul(float4(IN.Tangent, 1),WorldI)); 
     79                OUT.wNormal = normalize(mul(float4(IN.Normal, 1),WorldI));               
    8080                OUT.wBinormal = cross(OUT.wTangent, OUT.wNormal);                
    8181                 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/Demo/tower.material

    r2152 r2157  
    2626            pass 
    2727                { 
    28                         lighing off 
    29                         ambient 1 1 1 1 
    30                         diffuse 1 1 1 1 
    31                         specular 0 0 0 0 
    32                         emissive 0 0 0 
    33                          
    3428                        vertex_program_ref GTP/Demo/BumpMapped_VS 
    3529                        { 
     
    4034                          param_named_auto wCamPos camera_position 
    4135                          param_named textureRepeat float 6 
    42                         }  
     36                        } 
    4337                        fragment_program_ref GTP/Demo/ParallaxMapped_PS 
    4438                        { 
     
    6963        } 
    7064} 
     65 
     66material towermaterialBump 
     67{ 
     68        technique 
     69        { 
     70            pass 
     71                { 
     72                        vertex_program_ref GTP/Demo/BumpMapped_VS 
     73                        { 
     74                          param_named_auto WorldViewProj worldviewproj_matrix   
     75                          param_named_auto World world_matrix 
     76                          param_named_auto WorldI inverse_world_matrix 
     77                          param_named_auto wLightPos light_position 0 
     78                          param_named_auto wCamPos camera_position 
     79                          param_named textureRepeat float 6 
     80                        }  
     81                        fragment_program_ref GTP/Demo/BumpMapped_PS 
     82                        { 
     83                        } 
     84                        texture_unit 
     85                        { 
     86                         texture stone.bmp 
     87                         tex_coord_set 0 
     88                         colour_op replace 
     89                        } 
     90                        texture_unit 
     91                        { 
     92                         texture towerwall.bmp 
     93                         tex_coord_set 1 
     94                         colour_op modulate 
     95                        } 
     96                        texture_unit 
     97                        { 
     98                         texture stoneNormal.dds 
     99                         tex_coord_set 0 
     100                        } 
     101                         
     102                } 
     103         
     104        } 
     105} 
     106 
     107material towermaterialNoBump 
     108{ 
     109        technique 
     110        { 
     111            pass 
     112                { 
     113                        ambient 1 1 1 1 
     114                        diffuse 1 1 1 1 
     115                        specular 0 0 0 0 
     116                        emissive 0 0 0                   
     117                         
     118                        texture_unit 
     119                        { 
     120                         texture stone.bmp 
     121                         tex_coord_set 0                          
     122                        } 
     123                        texture_unit 
     124                        { 
     125                         texture towerwall.bmp 
     126                         tex_coord_set 1 
     127                         colour_op modulate 
     128                        }                        
     129                } 
     130         
     131        } 
     132} 
Note: See TracChangeset for help on using the changeset viewer.