1 struct LightSourceParameters
8 struct BasicMaterialParameters
17 struct PbrMaterialParameters
30 uniform mat4 eye_obj_matrix;
31 uniform mat3 eye_obj_normal_matrix;
34 mat4 eye_world_matrix;
35 mat4 projection_matrix;
40 BasicMaterialParameters basic_material;
45 PbrMaterialParameters pbr_material;
50 // Declared as an array for compatibility reasons
51 LightSourceParameters light_sources[1];
60 uniform sampler2D diffuse_map;
61 uniform sampler2D specular_map;
62 uniform sampler2D shininess_map;
63 uniform sampler2D base_color_map;
64 uniform sampler2D metalness_map;
65 uniform sampler2D roughness_map;
66 uniform sampler2D occlusion_map;
67 uniform sampler2D emission_map;
68 uniform sampler2D normal_map;
70 uniform sampler2DShadow shadow_map;
73 float shadow_darkness;
77 uniform samplerCube environment_map;
83 const int max_clip_planes = 0;
86 ClipPlane clip_planes[max_clip_planes];
89 #pragma MSP stage(vertex)
90 layout(location=0) in vec4 vertex;
91 layout(location=8) in vec4 texcoord;
92 layout(location=3) in vec4 color;
93 layout(location=2) in vec3 normal;
94 layout(location=4) in vec3 tangent;
95 layout(location=5) in vec3 binormal;
96 layout(location=12) in vec4 instance_transform[3];
98 #pragma MSP stage(fragment)
99 layout(location=0) out vec4 frag_color;