Changeset 2386


Ignore:
Timestamp:
05/16/07 15:30:33 (17 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA
Files:
5 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/MoriaHallBase.hlsl

    r2376 r2386  
    6262                                                                                float2 atlasTex  : TEXCOORD2, 
    6363                                                                                float3 tangent   : TEXCOORD3, 
    64                                                                                 uniform float normalCoord) 
     64                                                                                uniform float normalCoord, 
     65                                                                                uniform float texture_repeat) 
    6566{ 
    6667        MORIA_HALL_BASE_VSOUT OUT = (MORIA_HALL_BASE_VSOUT) 0; 
    6768         
     69        texCoord2.xy *= texture_repeat; 
    6870        OUT.texCoord = float4(texCoord1.xy, texCoord2.xy);       
    6971        if(normalCoord == 0) 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/moria.material

    r2376 r2386  
    4545                          param_named_auto wCamPos camera_position 
    4646                          param_named normalCoord float 0 
     47                          param_named texture_repeat float 1 
    4748                        } 
    4849                        fragment_program_ref GTP/MoriaDemo/MoriaHallBase_PS 
     
    117118                        { 
    118119                                param_named normalCoord float 1 
     120                                param_named texture_repeat float 3 
    119121                        } 
    120122                         
  • GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/troll.material

    r2376 r2386  
    1 material phong22 
    2 { 
    3         technique 
    4         { 
    5                 pass 
    6                 { 
    7                         texture_unit 
    8                         { 
    9                                 texture eyeball.jpg 
    10                                 tex_coord_set 0 
    11                                 colour_op modulate 
    12                         } 
    13                 } 
    14         } 
    15 } 
    16 material phong44 
    17 { 
    18         technique 
    19         { 
    20                 pass 
    21                 { 
    22  
    23                         texture_unit 
    24                         { 
    25                                 texture trollbody.png 
    26                                 tex_coord_set 0 
    27                                 colour_op modulate 
    28                         } 
    29                 } 
    30         } 
    31 } 
    32 material phong11 
    33 { 
    34         technique 
    35         { 
    36                 pass 
    37                 { 
    38  
    39                         texture_unit 
    40                         { 
    41                                 texture trollhead.png 
    42                                 tex_coord_set 0 
    43                                 colour_op modulate 
    44                         } 
    45                 } 
    46         } 
    47 } 
    48  
    491vertex_program TrollSkinningOneWeight cg 
    502{ 
    51    source trollvs.hlsl 
     3   source trollvs.cg 
    524   entry_point trollSkinning_One_Weight_vp 
    535   profiles vs_2_0 
     
    579vertex_program TrollSkinningSMGen cg 
    5810{ 
    59    source trollvs.hlsl 
     11   source trollvs.cg 
    6012   entry_point trollSkinning_SMGen_One_Weight_vp 
    6113   profiles vs_2_0 
    6214   includes_skeletal_animation true    
     15} 
     16 
     17fragment_program TrollPS hlsl 
     18{ 
     19   source trollps.hlsl 
     20   entry_point Troll_PS 
     21   target ps_2_0 
    6322} 
    6423 
     
    12281                                param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4 
    12382                                param_named_auto viewProjectionMatrix viewproj_matrix 
    124                                 param_named_auto lightPos[0] light_position 0 
    125                                 param_named_auto lightPos[1] light_position 1 
    126                                 param_named_auto lightDiffuseColour[0] light_diffuse_colour 0 
    127                                 param_named_auto lightDiffuseColour[1] light_diffuse_colour 1 
    128                                 param_named_auto ambient ambient_light_colour 
    129                          
     83                                param_named_auto lightPos light_position 0 
     84                                param_named_auto cameraPos camera_position               
     85                        } 
     86                        fragment_program_ref TrollPS 
     87                        { 
     88                                param_named_auto lightRange light_attenuation 0 
     89                            param_named_auto lightPower light_power 0 
     90                            param_named_auto lightColor light_diffuse_colour 0 
     91                            param_named specularity float 1 
     92                            param_named specularColor float4 0.02 0.02 0.02 0.02                         
    13093                        } 
    13194                        texture_unit basetexture 
     95                        { 
     96                        } 
     97                        texture_unit bumptexture 
    13298                        { 
    13399                        } 
     
    144110                        { 
    145111                                texture eyeball.jpg 
    146                                 tex_coord_set 0 
    147                                 colour_op modulate 
    148112                        } 
    149113                } 
     
    159123                        { 
    160124                                texture trollbody.png 
    161                                 tex_coord_set 0 
    162                                 colour_op modulate 
     125                        } 
     126                        texture_unit bumptexture 
     127                        { 
     128                                texture trollbodybump.png 
    163129                        } 
    164130                } 
     
    174140                        { 
    175141                                texture trollhead.png 
    176                                 tex_coord_set 0 
    177                                 colour_op modulate 
     142                        } 
     143                        texture_unit bumptexture 
     144                        { 
     145                                texture trollheadbump.png 
    178146                        } 
    179147                } 
Note: See TracChangeset for help on using the changeset viewer.