mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 19:50:03 -06:00
Removed hack and fixed SGCT.
This commit is contained in:
Submodule apps/OpenSpace/ext/sgct updated: 902ad00320...16b4804681
@@ -27,7 +27,6 @@
|
||||
|
||||
in float vs_screenSpaceDepth;
|
||||
in vec4 vs_positionViewSpace;
|
||||
flat in double vs_double_depth;
|
||||
|
||||
uniform vec4 gridColor;
|
||||
uniform float opacity;
|
||||
@@ -36,9 +35,7 @@ Fragment getFragment() {
|
||||
Fragment frag;
|
||||
frag.color = gridColor;
|
||||
frag.color.a *= opacity;
|
||||
// JCC: Temp solution for depth precision problems.
|
||||
frag.depth = float(vs_double_depth);
|
||||
//frag.depth = vs_screenSpaceDepth;
|
||||
frag.depth = vs_screenSpaceDepth;
|
||||
frag.gPosition = vs_positionViewSpace;
|
||||
|
||||
// There is no normal here
|
||||
|
||||
@@ -30,7 +30,6 @@ layout(location = 0) in vec3 in_position;
|
||||
|
||||
out float vs_screenSpaceDepth;
|
||||
out vec4 vs_positionViewSpace;
|
||||
flat out double vs_double_depth;
|
||||
|
||||
uniform dmat4 modelViewTransform;
|
||||
uniform dmat4 projectionTransform;
|
||||
@@ -40,7 +39,6 @@ void main() {
|
||||
dvec4 positionClipSpace = projectionTransform * positionViewSpace;
|
||||
vec4 positionScreenSpace = z_normalization(vec4(positionClipSpace));
|
||||
|
||||
vs_double_depth = positionClipSpace.w;
|
||||
vs_screenSpaceDepth = float(positionClipSpace.w);
|
||||
vs_positionViewSpace = vec4(positionViewSpace);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user