mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-05 17:55:31 +01:00
Introduce array textures for node rendering (#16574)
This commit is contained in:
@@ -9,8 +9,10 @@ varying vec3 worldPosition;
|
||||
varying lowp vec4 varColor;
|
||||
#ifdef GL_ES
|
||||
varying mediump vec2 varTexCoord;
|
||||
varying float varTexLayer;
|
||||
#else
|
||||
centroid varying vec2 varTexCoord;
|
||||
centroid varying float varTexLayer; // actually int
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_DYNAMIC_SHADOWS
|
||||
@@ -91,7 +93,11 @@ float directional_ambient(vec3 normal)
|
||||
|
||||
void main(void)
|
||||
{
|
||||
#ifdef USE_ARRAY_TEXTURE
|
||||
varTexLayer = inVertexAux;
|
||||
#endif
|
||||
varTexCoord = (mTexture * vec4(inTexCoord0.xy, 1.0, 1.0)).st;
|
||||
|
||||
gl_Position = mWorldViewProj * inVertexPosition;
|
||||
|
||||
vPosition = gl_Position.xyz;
|
||||
|
||||
Reference in New Issue
Block a user