Ignore:
Timestamp:
10/09/06 21:27:06 (18 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/Diffuse.material

    r1525 r1590  
    7272                fragment_program_ref GameTools/DiffusePS 
    7373                {  
    74                         param_named_auto cameraPos camera_position 
    7574                        param_named REDUCED_CUBEMAP_SIZE int 8 
    7675                        param_named lastCenter float3 0 0 0              
     
    112111}  
    113112 
     113 
     114 
    114115material GameTools/Diffuse/use 
    115116{  
     
    146147                fragment_program_ref Diffuse2PS 
    147148                {  
    148                         param_named_auto cameraPos camera_position 
    149                         param_named REDUCED_CUBEMAP_SIZE int 4 
    150149                        param_named lastCenter float3 0 0 0 
    151                          param_named_auto world_IT inverse_transpose_world_matrix                
    152150                }  
    153151                 
     
    170168   } 
    171169} 
     170 
     171 
     172fragment_program DiffuseP2PPS hlsl 
     173{ 
     174        source GameTools_Diffuse.hlsl 
     175        entry_point EnvMapDiffuseP2PPS 
     176        target ps_3_0 
     177}  
     178 
     179material GameTools/Diffuse/use1 
     180{  
     181   technique  
     182   {  
     183      pass  
     184      {  
     185                 
     186                IllumTechniques 
     187                { 
     188                        RenderTechnique DistanceCubeMap 
     189                        { 
     190                                update_interval         1 
     191                                distance_calc false      
     192                                face_angle_calc false 
     193                                update_all_face         true                                     
     194                        } 
     195                        RenderTechnique ReducedColorCubeMap 
     196                        { 
     197                                update_interval         1 
     198                                reduced_resolution 4 
     199                                resolution 128 
     200                                distance_calc false 
     201                                face_angle_calc false 
     202                                update_all_face         true 
     203                        } 
     204                } 
     205       
     206 
     207                vertex_program_ref Diffuse2VS 
     208                {        
     209                 param_named_auto worldViewProj worldviewproj_matrix  
     210                param_named_auto world world_matrix   
     211         
     212                }  
     213                fragment_program_ref DiffuseP2PPS 
     214                {  
     215                        param_named REDUCED_CUBEMAP_SIZE int 4 
     216                        param_named lastCenter float3 0 0 0                              
     217                }  
     218                 
     219                //Cube map for reflections and refractions       
     220                texture_unit 
     221                { 
     222                        cubic_texture cubemap.jpg combinedUVW 
     223                        tex_address_mode clamp 
     224                        colour_op replace 
     225                } 
     226 
     227                //Cube map of distances 
     228                texture_unit 
     229                 { 
     230                   cubic_texture cubemap.jpg combinedUVW 
     231                   tex_address_mode clamp 
     232                   colour_op replace 
     233                 } 
     234         } 
     235   } 
     236} 
Note: See TracChangeset for help on using the changeset viewer.