1 struct LightSourceParameters
8 struct MaterialParameters
21 uniform mat4 eye_obj_matrix;
22 uniform mat3 eye_obj_normal_matrix;
25 mat4 projection_matrix;
30 MaterialParameters material;
36 // Declared as an array for compatibility reasons
37 LightSourceParameters light_sources[1];
46 uniform sampler2D diffuse_map;
47 uniform sampler2D normal_map;
49 uniform sampler2DShadow shadow;
52 float shadow_darkness;
56 uniform samplerCube environment;
62 const int max_clip_planes = 0;
65 ClipPlane clip_planes[max_clip_planes];
68 #pragma MSP stage(vertex)
69 layout(location=0) in vec4 vertex;
70 layout(location=8) in vec4 texcoord;
71 layout(location=3) in vec4 color;
72 layout(location=2) in vec3 normal;
73 layout(location=4) in vec3 tangent;
74 layout(location=5) in vec3 binormal;
76 #pragma MSP stage(fragment)
77 layout(location=0) out vec4 frag_color;