From 0dfd0216d32465ca7ddb6100bbb917948daa93a8 Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Tue, 15 Nov 2016 18:09:17 +0100 Subject: [PATCH] Use the w component of the position as the depth value in the datasphere --- modules/iswa/shaders/datasphere_fs.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/iswa/shaders/datasphere_fs.glsl b/modules/iswa/shaders/datasphere_fs.glsl index c32b163cde..ad4664c918 100644 --- a/modules/iswa/shaders/datasphere_fs.glsl +++ b/modules/iswa/shaders/datasphere_fs.glsl @@ -39,7 +39,7 @@ in vec4 vs_position; Fragment getFragment() { vec4 position = vs_position; - float depth = pscDepth(position); + float depth = vs_position.w; vec4 transparent = vec4(0.0f); vec4 diffuse = transparent; float v = 0;