mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-20 20:09:08 -06:00
Depth working again
This commit is contained in:
Submodule ext/ghoul updated: 849cc67bdc...f31ddda5d7
@@ -32,6 +32,8 @@ in vec4 vs_position;
|
||||
#include "fragment.glsl"
|
||||
#include "PowerScaling/powerScaling_fs.hglsl"
|
||||
|
||||
|
||||
|
||||
Fragment getFragment(){
|
||||
Fragment frag;
|
||||
|
||||
@@ -42,7 +44,7 @@ Fragment getFragment(){
|
||||
if(frag.color.a == 0.0f){
|
||||
discard;
|
||||
}
|
||||
frag.depth = depth;
|
||||
frag.depth = denormalizeFloat(depth);
|
||||
|
||||
return frag;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ ScreenSpaceRenderable::ScreenSpaceRenderable()
|
||||
, _useFlatScreen("flatScreen", "Flat Screen", false)
|
||||
, _euclideanPosition("euclideanPosition", "Euclidean coordinates", glm::vec2(0),glm::vec2(-4),glm::vec2(4))
|
||||
, _sphericalPosition("sphericalPosition", "Spherical coordinates", glm::vec2(0),glm::vec2(-M_PI),glm::vec2(M_PI))
|
||||
, _depth("depth", "Depth", 0, 0, 0)
|
||||
, _depth("depth", "Depth", 0, 0, 1)
|
||||
, _scale("scale", "Scale" , 0.5, 0, 2)
|
||||
, _alpha("alpha", "Alpha" , 1, 0, 1)
|
||||
, _quad(0)
|
||||
|
||||
Reference in New Issue
Block a user