home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 111 / dppcz0102b.7z / dppcz0102b.bin / demos / Ballistics / render_methods.tx_ / render_methods.tx
Text File  |  2001-04-24  |  3KB  |  191 lines

  1. ; Thanks to Chris Maughan and the rest of the people at nVidia who helped
  2. ; make this system possible through NVLinker and NVASM
  3.  
  4. Gouraud
  5. {
  6.     Method
  7.     {
  8.         shader Gouraud
  9.         d3dff_transform
  10.         d3dff_emissive_vertex
  11.         d3dff_light
  12.         d3dff_light
  13.         d3dff_light
  14.     }
  15. }
  16.  
  17. Diffuse
  18. {
  19.     Method
  20.     {
  21.         shader GouraudDiffuse
  22.         d3dff_transform
  23.         d3dff_emissive_vertex
  24.         d3dff_light
  25.         d3dff_light
  26.         d3dff_light
  27.     }
  28. }
  29.  
  30. DiffuseSelfIllumination
  31. {
  32.     Method
  33.     {
  34.         shader GouraudDiffuseSelfIllumination
  35.         d3dff_transform
  36.         d3dff_emissive_vertex
  37.         d3dff_light
  38.         d3dff_light
  39.         d3dff_light
  40.     }
  41. }
  42.  
  43. DiffuseEnvironmentalReflection
  44. {
  45.     Method
  46.     {
  47.         shader GouraudDiffuseReflection
  48.         d3dff_transform
  49.         d3dff_emissive_vertex
  50.         d3dff_cubic_reflection_worldspace
  51.         d3dff_light
  52.         d3dff_light
  53.         d3dff_light
  54.     }
  55.     Method
  56.     {
  57.         shader GouraudDiffuse
  58.         d3dff_transform
  59.         d3dff_emissive_vertex
  60.         d3dff_light
  61.         d3dff_light
  62.         d3dff_light
  63.     }
  64. }
  65.  
  66. DiffuseBump
  67. {
  68.     Method
  69.     {
  70.         shader PerPixelDiffuse1
  71.         fetch_position
  72.         xform_position_objspace_clipspace_4x4
  73.         output_position
  74.         fetch_texcoord0
  75.         output_texcoord0
  76.         texcoord0_to_texcoord1
  77.         output_texcoord1
  78.         fetch_s
  79.         fetch_t
  80.         fetch_normal
  81.         make_lightdir_objspace
  82.         xform_lightdir_objspace_texspace
  83.         normalize_lightdir_texspace
  84.         lightdir_texspace_normalized_to_texcoord2
  85.         output_texcoord2
  86.     }
  87.     Method
  88.     {
  89.         shader GouraudDiffuse
  90.         d3dff_transform
  91.         d3dff_light
  92.         d3dff_light
  93.     }
  94. }
  95.  
  96. EnvironmentalReflectionBump
  97. {
  98.     Method
  99.     {
  100.         shader PerPixelCubicReflection
  101.         fetch_position
  102.         xform_position_objspace_clipspace_4x4
  103.         output_position
  104.         fetch_texcoord0
  105.         output_texcoord0
  106.         fetch_s
  107.         fetch_t
  108.         fetch_normal
  109.         xform_texspacematrix_objspace_worldspace
  110.         make_eyevector_worldspace
  111.         pack_texspacematrix_and_eyevector_worldspace_to_texcoord123
  112.         output_texcoord1
  113.         output_texcoord2
  114.         output_texcoord3
  115.     }
  116.     Method
  117.     {
  118.         shader Reflection
  119.         d3dff_transform
  120.         d3dff_cubic_reflection_worldspace
  121.     }
  122.     Method
  123.     {
  124.         shader Gouraud
  125.         d3dff_transform
  126.         d3dff_emissive_vertex
  127.     }
  128. }
  129.  
  130. Text
  131. {
  132.     Method
  133.     {
  134.         shader GouraudDiffuse
  135.         d3dff_transform
  136.         d3dff_emissive_vertex
  137.     }
  138. }
  139.  
  140. Sprite
  141. {
  142.     Method
  143.     {
  144.         shader GouraudDiffuse
  145.         d3dff_transform
  146.         d3dff_emissive_vertex
  147.     }
  148. }
  149.  
  150. Halo
  151. {
  152.     Method
  153.     {
  154.         shader GouraudDiffuse
  155.         d3dff_transform
  156.         d3dff_emissive_vertex
  157.     }
  158. }
  159.  
  160. EMBMDistortedSelfIllumination
  161. {
  162.     Method
  163.     {
  164.         shader SelfIlluminationEMBMDistorted
  165.         fetch_position
  166.         xform_position_objspace_clipspace_4x4
  167.         output_position
  168.         fetch_texcoord0
  169.         output_texcoord0
  170.         ;texcoord0_to_texcoord1
  171.         position_clipspace_to_texcoord1
  172.         output_texcoord1
  173.     }
  174.     Method
  175.     {
  176.         shader Gouraud
  177.         d3dff_transform
  178.         d3dff_emissive_vertex
  179.     }
  180. }
  181.  
  182. SkyBox
  183. {
  184.     Method
  185.     {
  186.         shader SelfIllumination
  187.         d3dff_transform
  188.     }
  189. }
  190.  
  191.