Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.82 KB | None | 0 0
  1.  
  2. vertex_program SpecLight/VP hlsl
  3. {
  4.    source SpecularLightning.hlsl
  5.    entry_point SpecularLightning_vp
  6.    target vs_2_0
  7. }
  8.  
  9. fragment_program SpecLight/FP hlsl
  10. {
  11.    source SpecularLightning.hlsl
  12.    entry_point SpecularLightning_fp
  13.    target ps_2_0
  14. }
  15.  
  16. material Tehadon/StaticGround
  17. {
  18.     technique
  19.     {
  20.         pass
  21.         {
  22.             // Vertex program reference
  23.             vertex_program_ref SpecLight/VP
  24.             {
  25.                 param_named_auto uWorldViewProj worldviewproj_matrix
  26.                 param_named_auto uWorldMatrix world_matrix
  27.                 //param_named_auto cLightDirection float3 0 -1 0
  28.             }
  29.            
  30.             // Fragment program
  31.             fragment_program_ref SpecLight/FP
  32.             {
  33.                 //param_named_auto LightColor float4 1 1 1 1
  34.                 //param_named_auto AmbientColor float4 1 1 1 1
  35.             }
  36.  
  37.             texture_unit
  38.             {
  39.                 texture StaticGround.png
  40.                 tex_coord_set 0
  41.             }
  42.  
  43.         }
  44.     }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement