summaryrefslogtreecommitdiff
path: root/src/shaders/pbr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shaders/pbr.c')
-rw-r--r--src/shaders/pbr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shaders/pbr.c b/src/shaders/pbr.c
index bbf1c2b..b8ee4be 100644
--- a/src/shaders/pbr.c
+++ b/src/shaders/pbr.c
@@ -43,11 +43,12 @@ static bool frag(UniformCollection* uniforms, FragmentShaderIn* in, Vec4* color)
//float rough = 1- internal_vec3_dot(&in->normal, light);
float depth = _clip_pos->x / _clip_pos->y;
depth = (depth + 1) / 2;
- depth = linear01depth(depth);
+ depth = linear01Depth(depth);
Vec4 c = tex2d(_albedo_tex, _texcoord);
//Color32 nc = tex2d(noramltex, in->texcoord);
//internal_vec3_scale(&c, roughness, &c);
*color = vec4_saturate(c);
+ //*color = vec4(depth, depth, depth, 1);
//internal_vec3_scale(color, 1 - depth, color);
return 1;
}