1 struct LightSourceParameters
8 struct MaterialParameters
21 uniform mat4 eye_obj_matrix;
22 uniform mat3 eye_obj_normal_matrix;
25 mat4 eye_world_matrix;
26 mat4 projection_matrix;
31 MaterialParameters material;
37 // Declared as an array for compatibility reasons
38 LightSourceParameters light_sources[1];
47 uniform sampler2D diffuse_map;
48 uniform sampler2D normal_map;
50 uniform sampler2DShadow shadow;
53 float shadow_darkness;
57 uniform samplerCube environment;
63 const int max_clip_planes = 0;
66 ClipPlane clip_planes[max_clip_planes];
69 #pragma MSP stage(vertex)
70 layout(location=0) in vec4 vertex;
71 layout(location=8) in vec4 texcoord;
72 layout(location=3) in vec4 color;
73 layout(location=2) in vec3 normal;
74 layout(location=4) in vec3 tangent;
75 layout(location=5) in vec3 binormal;
76 layout(location=12) in vec4 instance_transform[3];
78 #pragma MSP stage(fragment)
79 layout(location=0) out vec4 frag_color;