Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2014
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. MaterialDef Post Shadow {
  2.  
  3. MaterialParameters {
  4. Int FilterMode
  5. Boolean HardwareShadows
  6.  
  7. Texture2D ShadowMap0
  8. Texture2D ShadowMap1
  9. Texture2D ShadowMap2
  10. Texture2D ShadowMap3
  11. //pointLights
  12. Texture2D ShadowMap4
  13. Texture2D ShadowMap5
  14.  
  15. Float ShadowIntensity
  16. Vector4 Splits
  17. Vector2 FadeInfo
  18.  
  19. Matrix4 LightViewProjectionMatrix0
  20. Matrix4 LightViewProjectionMatrix1
  21. Matrix4 LightViewProjectionMatrix2
  22. Matrix4 LightViewProjectionMatrix3
  23. //pointLight
  24. Matrix4 LightViewProjectionMatrix4
  25. Matrix4 LightViewProjectionMatrix5
  26. Vector3 LightPos
  27.  
  28. Float PCFEdge
  29.  
  30. Float ShadowMapSize
  31.  
  32. Int LightCount
  33. Float LightRadius
  34. }
  35.  
  36. Technique {
  37. VertexShader GLSL150: MatDefs/Shadow/PostShadowMS.vert
  38. FragmentShader GLSL150: MatDefs/Shadow/PostShadowMS15.frag
  39.  
  40. WorldParameters {
  41. WorldViewProjectionMatrix
  42. WorldMatrix
  43. }
  44.  
  45. Defines {
  46. HARDWARE_SHADOWS : HardwareShadows
  47. FILTER_MODE : FilterMode
  48. PCFEDGE : PCFEdge
  49. SHADOWMAP_SIZE : ShadowMapSize
  50. FADE : FadeInfo
  51. PSSM : Splits
  52. POINTLIGHT : LightViewProjectionMatrix5
  53. NUM_LIGHTS: LightCount
  54. }
  55.  
  56. RenderState {
  57. Blend Modulate
  58. DepthWrite Off
  59. PolyOffset -0.1 0
  60. }
  61. }
  62.  
  63. Technique {
  64. VertexShader GLSL100: MatDefs/Shadow/PostShadowMS.vert
  65. FragmentShader GLSL100: MatDefs/Shadow/PostShadowMS.frag
  66.  
  67. WorldParameters {
  68. WorldViewProjectionMatrix
  69. WorldMatrix
  70. }
  71.  
  72. Defines {
  73. HARDWARE_SHADOWS : HardwareShadows
  74. FILTER_MODE : FilterMode
  75. PCFEDGE : PCFEdge
  76. SHADOWMAP_SIZE : ShadowMapSize
  77. FADE : FadeInfo
  78. PSSM : Splits
  79. POINTLIGHT : LightViewProjectionMatrix5
  80. NUM_LIGHTS: LightCount
  81. }
  82.  
  83. RenderState {
  84. Blend Modulate
  85. DepthWrite Off
  86. PolyOffset -0.1 0
  87. }
  88. }
  89.  
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement