Advertisement
entrusc

Lighting.j3md

Mar 25th, 2015
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.80 KB | None | 0 0
  1. MaterialDef Lighting {
  2.  
  3.     MaterialParameters {
  4.  
  5.         Boolean Sparkle
  6.  
  7.         // Attributes
  8.         Texture2D GlobalAttributesMap
  9.  
  10.         // Texture of the lit parts
  11.         Texture3D LightMap0
  12.         Texture3D LightMap1
  13.         Texture3D LightMap2
  14.         Texture3D LightMap3
  15.         Texture3D LightMap4
  16.         Texture3D LightMap5
  17.         Texture3D LightMap6
  18.         Texture3D LightMap7
  19.         Texture3D LightMap8
  20.  
  21.         Boolean Holographic
  22.         Color HolographicColor
  23.  
  24.         TextureArray DiffuseTextures
  25.         Texture2D DiffuseTexture
  26.         TextureArray GlowTextures
  27.         TextureArray SpecularTextures
  28.         TextureArray SpecularWithSparklingTextures
  29.  
  30.         //Additional vector for fallen items
  31.         Vector3 ShiftVector
  32.         Matrix3 ShiftRotation
  33.  
  34.         Float LightMapNormalMultiplicator
  35.     }
  36.  
  37.     Technique {
  38.  
  39.         VertexShader GLSL150:   MatDefs/Lighting.vert
  40.         FragmentShader GLSL150: MatDefs/Lighting.frag
  41.  
  42.         WorldParameters {
  43.             WorldViewProjectionMatrix
  44.             NormalMatrix
  45.             WorldViewMatrix
  46.             ViewMatrix
  47.             ProjectionMatrix
  48.             CameraPosition
  49.             WorldMatrix
  50.             Time
  51.         }
  52.  
  53.         Defines {
  54.             LIGHTMAPSHADING : LightMap0
  55.             TEXTUREATLAS : DiffuseTextures
  56.             SHIFT : ShiftVector
  57.         }
  58.     }
  59.  
  60.     Technique PreNormalPass {
  61.  
  62.         VertexShader GLSL100 :   Common/MatDefs/SSAO/normal.vert
  63.         FragmentShader GLSL100 : Common/MatDefs/SSAO/normal.frag
  64.  
  65.         WorldParameters {
  66.             WorldViewProjectionMatrix
  67.             WorldViewMatrix
  68.             NormalMatrix
  69.         }
  70.  
  71.         Defines {
  72.             DIFFUSEMAP_ALPHA : DiffuseMap
  73.         }
  74.  
  75.         RenderState {
  76.  
  77.         }
  78.  
  79.     }
  80.  
  81.  
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement