diff --git a/data/shaders/instanced_grass.vert b/data/shaders/instanced_grass.vert index 5a9d11769..5ca0a66a3 100644 --- a/data/shaders/instanced_grass.vert +++ b/data/shaders/instanced_grass.vert @@ -11,6 +11,7 @@ layout(location = 8) in vec3 Orientation; layout(location = 9) in vec3 Scale; #ifdef GL_ARB_bindless_texture layout(location = 10) in sampler2D Handle; +layout(location = 11) in sampler2D SecondHandle; #endif #else @@ -28,6 +29,7 @@ out vec3 nor; out vec2 uv; #ifdef GL_ARB_bindless_texture flat out sampler2D handle; +flat out sampler2D secondhandle; #endif mat4 getWorldMatrix(vec3 translation, vec3 rotation, vec3 scale); @@ -42,5 +44,6 @@ void main() uv = Texcoord; #ifdef GL_ARB_bindless_texture handle = Handle; + secondhandle = SecondHandle; #endif }