Depth working again

This commit is contained in:
Sebastian Piwell
2016-03-31 09:39:05 -04:00
parent 687b8551d2
commit a2fb30b432
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -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;
}