mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
Fix depth map
texture2D is deprecated since GLSL 1.30 and removed in 3.30 and beyond.
This commit is contained in:
parent
6c9250f95c
commit
246d00230c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user