Debian Codegraph @

shaders/src/inputs.fs

raw
1 //------------------------------------------------------------------------------
2 // Attributes and uniforms
3 //------------------------------------------------------------------------------
4
5 LAYOUT_LOCATION(4) in highp vec3 vertex_worldPosition;
6
7 #if defined(HAS_ATTRIBUTE_TANGENTS)
8 LAYOUT_LOCATION(5) SHADING_INTERPOLATION in mediump vec3 vertex_worldNormal;
9 #if defined(MATERIAL_NEEDS_TBN)
10 LAYOUT_LOCATION(6) SHADING_INTERPOLATION in mediump vec4 vertex_worldTangent;
11 #endif
12 #endif
13
14 LAYOUT_LOCATION(7) in highp vec4 vertex_position;
15
16 #if defined(HAS_ATTRIBUTE_COLOR)
17 LAYOUT_LOCATION(9) in mediump vec4 vertex_color;
18 #endif
19
20 #if defined(HAS_ATTRIBUTE_UV0) && !defined(HAS_ATTRIBUTE_UV1)
21 LAYOUT_LOCATION(10) in highp vec2 vertex_uv01;
22 #elif defined(HAS_ATTRIBUTE_UV1)
23 LAYOUT_LOCATION(10) in highp vec4 vertex_uv01;
24 #endif
25
26 #if defined(HAS_SHADOWING) && defined(HAS_DIRECTIONAL_LIGHTING)
27 LAYOUT_LOCATION(11) in highp vec4 vertex_lightSpacePosition;
28 #endif
29
30 #if defined(HAS_SHADOWING) && defined(HAS_DYNAMIC_LIGHTING)
31 LAYOUT_LOCATION(12) in highp vec4 vertex_spotLightSpacePosition[MAX_SHADOW_CASTING_SPOTS];
32 #endif
33
34 // Note that fragColor is an output and is not declared here; see main.fs and depth_main.fs