Use the w component of the position as the depth value in the datasphere

This commit is contained in:
Alexander Bock
2016-11-15 18:09:17 +01:00
parent 86ccb66a70
commit 0dfd0216d3

View File

@@ -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;