X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=shaderlib%2Fmsp_interface.glsl;h=ed40aa4a18c0975a1829c93a45cc3fe6ecf2ea49;hb=54c7977189c95d9884fd75b7e32f2d68604ff05c;hp=2458b97d6b2d08e36de81c6e3f2397b32c930aa8;hpb=68b74ce23dd20822b07d79dc25aa0a0a19ef27a5;p=libs%2Fgl.git diff --git a/shaderlib/msp_interface.glsl b/shaderlib/msp_interface.glsl index 2458b97d..ed40aa4a 100644 --- a/shaderlib/msp_interface.glsl +++ b/shaderlib/msp_interface.glsl @@ -30,7 +30,8 @@ uniform Lighting float fog_density; }; -layout(constant_id=auto) const int max_clip_planes = 0; +layout(constant_id=auto) const bool use_clipping = false; +layout(constant_id=auto) const int max_clip_planes = 8; uniform Clipping { ClipPlane clip_planes[max_clip_planes]; @@ -41,11 +42,12 @@ layout(location=0) in vec4 vertex; layout(location=1) in vec4 color; layout(location=2) in vec3 normal; layout(location=3) in vec3 tangent; -layout(location=4) in vec3 binormal; -layout(location=7) in vec4 texcoord; -layout(location=8) in vec4 texcoord1; -layout(location=9) in vec4 texcoord2; -layout(location=10) in vec4 texcoord3; +layout(location=4) in vec4 group; +layout(location=5) in vec4 weight; +layout(location=6) in vec4 texcoord; +layout(location=7) in vec4 texcoord1; +layout(location=8) in vec4 texcoord2; +layout(location=9) in vec4 texcoord3; layout(location=13) in vec4 instance_transform[3]; #pragma MSP stage(fragment)