diff --git a/wadsrc/static/shaders/scene/layout_frag.glsl b/wadsrc/static/shaders/scene/layout_frag.glsl index 92f67b72a..7b40b428f 100644 --- a/wadsrc/static/shaders/scene/layout_frag.glsl +++ b/wadsrc/static/shaders/scene/layout_frag.glsl @@ -30,3 +30,8 @@ vec4 texture(int index, vec2 p) { return texture(textures[uTextureIndex + index], p); } + +ivec2 textureSize(int index, int lod) +{ + return textureSize(textures[uTextureIndex + index], lod); +}