From 246d00230c29d73671470a512fa711ee89bd407b Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Mon, 16 Jun 2025 14:48:21 +0200 Subject: [PATCH] Fix depth map texture2D is deprecated since GLSL 1.30 and removed in 3.30 and beyond. --- src/3d/shaders/depth_render.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/3d/shaders/depth_render.frag b/src/3d/shaders/depth_render.frag index 6238575e7ef..f73db7f9ac6 100644 --- a/src/3d/shaders/depth_render.frag +++ b/src/3d/shaders/depth_render.frag @@ -9,7 +9,7 @@ out vec4 fragColor; void main() { - float z = texture2D( depthTexture, texCoord ).r; + float z = texture( depthTexture, texCoord ).r; fragColor.b = float( int(z * 255) ) / 255.0; z = z * 255.0 - fragColor.b * 255.0; fragColor.g = float( int(z * 255) ) / 255.0;