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 reflectivity_map;
64 uniform sampler2D base_color_map;
65 uniform sampler2D metalness_map;
66 uniform sampler2D roughness_map;
67 uniform sampler2D occlusion_map;
68 uniform sampler2D emission_map;
69 uniform sampler2D normal_map;
71 uniform sampler2DShadow shadow_map;
74 float shadow_darkness;
78 uniform samplerCube environment_map;
84 layout(constant_id=auto) const int max_clip_planes = 0;
87 ClipPlane clip_planes[max_clip_planes];
90 #pragma MSP stage(vertex)
91 layout(location=0) in vec4 vertex;
92 layout(location=8) in vec4 texcoord;
93 layout(location=3) in vec4 color;
94 layout(location=2) in vec3 normal;
95 layout(location=4) in vec3 tangent;
96 layout(location=5) in vec3 binormal;
97 layout(location=12) in vec4 instance_transform[3];
99 #pragma MSP stage(fragment)
100 layout(location=0) out vec4 frag_color;