Skip to content
Snippets Groups Projects
Commit 8b45dfd4 authored by Ptolemy's avatar Ptolemy
Browse files

DRTVWR-559: PBR: Cleanup debug

parent dc8773ff
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
...@@ -291,7 +291,7 @@ vec2 getScreenXY(vec4 clip) ...@@ -291,7 +291,7 @@ vec2 getScreenXY(vec4 clip)
// Color utils // Color utils
vec3 colorized_dot(float x) vec3 colorize_dot(float x)
{ {
if (x > 0.0) return vec3( 0, x, 0 ); if (x > 0.0) return vec3( 0, x, 0 );
if (x < 0.0) return vec3(-x, 0, 0 ); if (x < 0.0) return vec3(-x, 0, 0 );
......
...@@ -186,6 +186,7 @@ vec3 srgb_to_linear(vec3 c); ...@@ -186,6 +186,7 @@ vec3 srgb_to_linear(vec3 c);
// Debug Utils // Debug Utils
vec3 BRDFDiffuse(vec3 color); vec3 BRDFDiffuse(vec3 color);
vec3 colorize_dot(float x);
vec3 fresnelSchlick( vec3 reflect0, vec3 reflect90, float vh); vec3 fresnelSchlick( vec3 reflect0, vec3 reflect90, float vh);
float D_GGX( float nh, float alphaRough ); float D_GGX( float nh, float alphaRough );
float V_GGX( float nl, float nv, float alphaRough ); float V_GGX( float nl, float nv, float alphaRough );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment