| 1 |
layout(location = LOCATION_POSITION) in vec4 mesh_position; |
| 2 |
|
| 3 |
#if defined(HAS_ATTRIBUTE_TANGENTS) |
| 4 |
layout(location = LOCATION_TANGENTS) in vec4 mesh_tangents; |
| 5 |
#endif |
| 6 |
|
| 7 |
#if defined(HAS_ATTRIBUTE_COLOR) |
| 8 |
layout(location = LOCATION_COLOR) in vec4 mesh_color; |
| 9 |
#endif |
| 10 |
|
| 11 |
#if defined(HAS_ATTRIBUTE_UV0) |
| 12 |
layout(location = LOCATION_UV0) in vec2 mesh_uv0; |
| 13 |
#endif |
| 14 |
|
| 15 |
#if defined(HAS_ATTRIBUTE_UV1) |
| 16 |
layout(location = LOCATION_UV1) in vec2 mesh_uv1; |
| 17 |
#endif |
| 18 |
|
| 19 |
#if defined(HAS_ATTRIBUTE_BONE_INDICES) |
| 20 |
layout(location = LOCATION_BONE_INDICES) in uvec4 mesh_bone_indices; |
| 21 |
#endif |
| 22 |
|
| 23 |
#if defined(HAS_ATTRIBUTE_BONE_WEIGHTS) |
| 24 |
layout(location = LOCATION_BONE_WEIGHTS) in vec4 mesh_bone_weights; |
| 25 |
#endif |
| 26 |
|
| 27 |
#if defined(HAS_ATTRIBUTE_CUSTOM0) |
| 28 |
layout(location = LOCATION_CUSTOM0) in vec4 mesh_custom0; |
| 29 |
#endif |
| 30 |
|
| 31 |
#if defined(HAS_ATTRIBUTE_CUSTOM1) |
| 32 |
layout(location = LOCATION_CUSTOM1) in vec4 mesh_custom1; |
| 33 |
#endif |
| 34 |
|
| 35 |
#if defined(HAS_ATTRIBUTE_CUSTOM2) |
| 36 |
layout(location = LOCATION_CUSTOM2) in vec4 mesh_custom2; |
| 37 |
#endif |
| 38 |
|
| 39 |
#if defined(HAS_ATTRIBUTE_CUSTOM3) |
| 40 |
layout(location = LOCATION_CUSTOM3) in vec4 mesh_custom3; |
| 41 |
#endif |
| 42 |
|
| 43 |
#if defined(HAS_ATTRIBUTE_CUSTOM4) |
| 44 |
layout(location = LOCATION_CUSTOM4) in vec4 mesh_custom4; |
| 45 |
#endif |
| 46 |
|
| 47 |
#if defined(HAS_ATTRIBUTE_CUSTOM5) |
| 48 |
layout(location = LOCATION_CUSTOM5) in vec4 mesh_custom5; |
| 49 |
#endif |
| 50 |
|
| 51 |
#if defined(HAS_ATTRIBUTE_CUSTOM6) |
| 52 |
layout(location = LOCATION_CUSTOM6) in vec4 mesh_custom6; |
| 53 |
#endif |
| 54 |
|
| 55 |
#if defined(HAS_ATTRIBUTE_CUSTOM7) |
| 56 |
layout(location = LOCATION_CUSTOM7) in vec4 mesh_custom7; |
| 57 |
#endif |
| 58 |
|
| 59 |
LAYOUT_LOCATION(4) out highp vec3 vertex_worldPosition; |
| 60 |
#if defined(HAS_ATTRIBUTE_TANGENTS) |
| 61 |
LAYOUT_LOCATION(5) SHADING_INTERPOLATION out mediump vec3 vertex_worldNormal; |
| 62 |
#if defined(MATERIAL_NEEDS_TBN) |
| 63 |
LAYOUT_LOCATION(6) SHADING_INTERPOLATION out mediump vec4 vertex_worldTangent; |
| 64 |
#endif |
| 65 |
#endif |
| 66 |
|
| 67 |
LAYOUT_LOCATION(7) out highp vec4 vertex_position; |
| 68 |
|
| 69 |
#if defined(HAS_ATTRIBUTE_COLOR) |
| 70 |
LAYOUT_LOCATION(9) out mediump vec4 vertex_color; |
| 71 |
#endif |
| 72 |
|
| 73 |
#if defined(HAS_ATTRIBUTE_UV0) && !defined(HAS_ATTRIBUTE_UV1) |
| 74 |
LAYOUT_LOCATION(10) out highp vec2 vertex_uv01; |
| 75 |
#elif defined(HAS_ATTRIBUTE_UV1) |
| 76 |
LAYOUT_LOCATION(10) out highp vec4 vertex_uv01; |
| 77 |
#endif |
| 78 |
|
| 79 |
#if defined(HAS_SHADOWING) && defined(HAS_DIRECTIONAL_LIGHTING) |
| 80 |
LAYOUT_LOCATION(11) out highp vec4 vertex_lightSpacePosition; |
| 81 |
#endif |
| 82 |
|
| 83 |
#if defined(HAS_SHADOWING) && defined(HAS_DYNAMIC_LIGHTING) |
| 84 |
LAYOUT_LOCATION(12) out highp vec4 vertex_spotLightSpacePosition[MAX_SHADOW_CASTING_SPOTS]; |
| 85 |
#endif |