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

游戏引擎

开发平台:

Visual C++

  1. // Post processors
  2. material DeferredShading/Post/Multi
  3. {
  4.     technique
  5.     {
  6.      pass
  7. {
  8. // Ambient and depth write pass
  9. cull_hardware none
  10. cull_software none
  11. //depth_check off
  12. depth_write on
  13. fragment_program_ref DeferredShading/post/hlsl/Ambient_ps
  14. {
  15. }
  16. vertex_program_ref DeferredShading/post/hlsl/vs
  17. {
  18. }
  19. texture_unit
  20. {
  21. tex_address_mode clamp
  22. filtering none
  23. }
  24. texture_unit
  25. {
  26. tex_address_mode clamp
  27. filtering none
  28. }
  29. }
  30. pass
  31. {
  32. scene_blend add
  33. cull_hardware none
  34. cull_software none
  35. iteration once_per_light
  36. depth_write off
  37. //depth_check off
  38. fragment_program_ref DeferredShading/post/hlsl/GlobalLight_ps
  39. {
  40. }
  41. vertex_program_ref DeferredShading/post/hlsl/vs
  42. {
  43. }
  44. texture_unit
  45. {
  46. tex_address_mode clamp
  47. filtering none
  48. }
  49. texture_unit
  50. {
  51. tex_address_mode clamp
  52. filtering none
  53. }
  54. }
  55. }
  56. technique
  57.     {
  58.      pass
  59. {
  60. // Ambient and depth write pass
  61. cull_hardware none
  62. cull_software none
  63. //depth_check off
  64. depth_write on
  65. fragment_program_ref DeferredShading/post/glsl/Ambient_ps
  66. {
  67. }
  68. vertex_program_ref DeferredShading/post/glsl/vs
  69. {
  70. }
  71. texture_unit
  72. {
  73. tex_address_mode clamp
  74. filtering none
  75. }
  76. texture_unit
  77. {
  78. tex_address_mode clamp
  79. filtering none
  80. }
  81. }
  82. pass
  83. {
  84. scene_blend add
  85. cull_hardware none
  86. cull_software none
  87. iteration once_per_light
  88. depth_write off
  89. depth_check off
  90. fragment_program_ref DeferredShading/post/glsl/GlobalLight_ps
  91. {
  92. }
  93. vertex_program_ref DeferredShading/post/glsl/vs
  94. {
  95. }
  96. texture_unit
  97. {
  98. tex_address_mode clamp
  99. filtering none
  100. }
  101. texture_unit
  102. {
  103. tex_address_mode clamp
  104. filtering none
  105. }
  106. }
  107. }
  108. }