1 struct LightSourceParameters
14 uniform mat4 world_obj_matrix;
15 uniform mat3 world_obj_normal_matrix;
16 uniform CameraTransform
18 mat4 eye_world_matrix;
19 mat4 world_eye_matrix;
24 layout(constant_id=auto) const int max_lights = 4;
27 LightSourceParameters light_sources[max_lights];
33 layout(constant_id=auto) const bool use_clipping = false;
34 layout(constant_id=auto) const int max_clip_planes = 8;
37 ClipPlane clip_planes[max_clip_planes];
40 #pragma MSP stage(vertex)
41 layout(location=0) in vec4 vertex;
42 layout(location=1) in vec4 color;
43 layout(location=2) in vec3 normal;
44 layout(location=3) in vec3 tangent;
45 layout(location=4) in ivec4 group;
46 layout(location=5) in vec4 weight;
47 layout(location=6) in vec4 texcoord;
48 layout(location=7) in vec4 texcoord1;
49 layout(location=8) in vec4 texcoord2;
50 layout(location=9) in vec4 texcoord3;
51 layout(location=13) in vec4 instance_transform[3];
53 #pragma MSP stage(fragment)
54 layout(location=0) out vec4 frag_color;