mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-01 16:29:43 -05:00
Fix volume rendering depth sorting issue
This commit is contained in:
@@ -30,10 +30,9 @@ in vec4 positionCameraSpace;
|
||||
|
||||
Fragment getFragment() {
|
||||
vec4 position = positionCameraSpace;
|
||||
float depth = safeLength(position);
|
||||
|
||||
Fragment frag;
|
||||
frag.color = vec4(positionLocalSpace.xyz + 0.5, 1.0);
|
||||
frag.depth = depth;
|
||||
frag.depth = -position.z;
|
||||
return frag;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user