1 struct LightSourceParameters
8 struct BasicMaterialParameters
22 uniform mat4 eye_obj_matrix;
23 uniform mat3 eye_obj_normal_matrix;
26 mat4 eye_world_matrix;
27 mat4 projection_matrix;
32 BasicMaterialParameters basic_material;
37 // Declared as an array for compatibility reasons
38 LightSourceParameters light_sources[1];
47 uniform sampler2D diffuse_map;
48 uniform sampler2D specular_map;
49 uniform sampler2D shininess_map;
50 uniform sampler2D emission_map;
51 uniform sampler2D normal_map;
53 uniform sampler2DShadow shadow_map;
56 float shadow_darkness;
60 uniform samplerCube environment;
66 const int max_clip_planes = 0;
69 ClipPlane clip_planes[max_clip_planes];
72 #pragma MSP stage(vertex)
73 layout(location=0) in vec4 vertex;
74 layout(location=8) in vec4 texcoord;
75 layout(location=3) in vec4 color;
76 layout(location=2) in vec3 normal;
77 layout(location=4) in vec3 tangent;
78 layout(location=5) in vec3 binormal;
79 layout(location=12) in vec4 instance_transform[3];
81 #pragma MSP stage(fragment)
82 layout(location=0) out vec4 frag_color;