instancing.material
上传用户:xhbjoy
上传日期:2014-10-07
资源大小:38068k
文件大小:3k
源码类别:

游戏引擎

开发平台:

Visual C++

  1. vertex_program InstancingCg cg
  2. {
  3. source instancing.cg
  4. profiles vs_2_0
  5. entry_point instancing_vp
  6. default_params
  7. {
  8. param_named_auto ambient ambient_light_colour
  9. param_named_auto lightDiffuseColour light_diffuse_colour 0
  10. param_named_auto lightPos light_position 0
  11. param_named_auto viewProjectionMatrix viewproj_matrix
  12. param_named_auto worldMatrix3x4Array world_matrix_array_3x4
  13. }
  14. }
  15. vertex_program InstancingShadowCasterCg cg
  16. {
  17.     source instancing.cg
  18. profiles vs_2_0
  19. entry_point instancingCaster_vp
  20. default_params
  21. {
  22. param_named_auto ambient ambient_light_colour
  23. param_named_auto viewProjectionMatrix viewproj_matrix
  24. param_named_auto worldMatrix3x4Array world_matrix_array_3x4
  25. }
  26. }
  27. vertex_program CrowdCg cg
  28. {
  29. source instancing.cg
  30. profiles vs_2_0
  31. entry_point crowd_vp
  32. default_params
  33. {
  34. param_named_auto viewProjectionMatrix viewproj_matrix
  35. param_named_auto numBones custom 0
  36. param_named_auto worldMatrix3x4Array world_matrix_array_3x4
  37. param_named_auto lightPos light_position 0
  38. param_named_auto lightDiffuseColour light_diffuse_colour 0
  39. param_named_auto ambient ambient_light_colour
  40. }
  41. }
  42. vertex_program CrowdShadowCasterCg cg
  43. {
  44. source instancing.cg
  45. profiles vs_2_0
  46. entry_point crowdCaster_vp
  47. default_params
  48. {
  49. param_named_auto viewProjectionMatrix viewproj_matrix
  50. param_named_auto numBones custom 0
  51. param_named_auto worldMatrix3x4Array world_matrix_array_3x4
  52. param_named_auto ambient ambient_light_colour
  53. }
  54. }
  55. vertex_program InstancingGLSL glsl
  56. {
  57. source instancingVp.glsl
  58. preprocessor_defines SHADOW_CASTER=0
  59. default_params
  60. {
  61. param_named_auto ambient ambient_light_colour
  62. param_named_auto lightDiffuseColour light_diffuse_colour 0
  63. param_named_auto lightPos light_position 0
  64. param_named_auto viewProjectionMatrix viewproj_matrix
  65. param_named_auto worldMatrix3x4Array world_matrix_array_3x4
  66. }
  67. }
  68. vertex_program InstancingShadowCasterGLSL glsl
  69. {
  70.     source instancingVp.glsl
  71. preprocessor_defines SHADOW_CASTER=1
  72. default_params
  73. {
  74. param_named_auto ambient ambient_light_colour
  75. param_named_auto viewProjectionMatrix viewproj_matrix
  76. param_named_auto worldMatrix3x4Array world_matrix_array_3x4
  77. }
  78. }
  79. vertex_program CrowdGLSL glsl
  80. {
  81. source crowdVp.glsl
  82. preprocessor_defines SHADOW_CASTER=0
  83. default_params
  84. {
  85. param_named_auto viewProjectionMatrix viewproj_matrix
  86. param_named_auto numBones custom 0
  87. param_named_auto worldMatrix3x4Array world_matrix_array_3x4
  88. param_named_auto lightPos light_position 0
  89. param_named_auto lightDiffuseColour light_diffuse_colour 0
  90. param_named_auto ambient ambient_light_colour
  91. }
  92. }
  93. vertex_program CrowdShadowCasterGLSL glsl
  94. {
  95. source crowdVp.glsl
  96. preprocessor_defines SHADOW_CASTER=1
  97. default_params
  98. {
  99. param_named_auto viewProjectionMatrix viewproj_matrix
  100. param_named_auto numBones custom 0
  101. param_named_auto worldMatrix3x4Array world_matrix_array_3x4
  102. param_named_auto ambient ambient_light_colour
  103. }
  104. }
  105. vertex_program Instancing unified
  106. {
  107. delegate InstancingGLSL
  108. delegate InstancingCg
  109. }
  110. vertex_program InstancingShadowCaster unified
  111. {
  112. delegate InstancingShadowCasterGLSL
  113. delegate InstancingShadowCasterCg
  114. }
  115. vertex_program Crowd unified
  116. {
  117. delegate CrowdGLSL
  118. delegate CrowdCg
  119. }
  120. vertex_program CrowdShadowCaster unified
  121. {
  122. delegate CrowdShadowCasterGLSL
  123. delegate CrowdShadowCasterCg
  124. }