Skip to content

Commit

Permalink
Minor update to RendererPBR.psh
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Oct 14, 2023
1 parent cd0eb3e commit 18838ca
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Shaders/PBR/private/RenderPBR.psh
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ void main(in VSOutput VSOut,
case DEBUG_VIEW_DIFFUSE_COLOR: OutColor.rgb = SrfInfo.DiffuseColor; break;
case DEBUG_VIEW_SPECULAR_COLOR: OutColor.rgb = SrfInfo.Reflectance0; break;
case DEBUG_VIEW_REFLECTANCE90: OutColor.rgb = SrfInfo.Reflectance90; break;
case DEBUG_VIEW_MESH_NORMAL: OutColor.rgb = abs(MeshNormal/ max(length(MeshNormal), 1e-3)); break;
case DEBUG_VIEW_MESH_NORMAL: OutColor.rgb = abs(MeshNormal/ max(length(MeshNormal), 1e-3)); break;
case DEBUG_VIEW_PERTURBED_NORMAL: OutColor.rgb = abs(perturbedNormal); break;
case DEBUG_VIEW_NDOTV: OutColor.rgb = dot(perturbedNormal, view) * float3(1.0, 1.0, 1.0); break;
case DEBUG_VIEW_DIRECT_LIGHTING: OutColor.rgb = DirectLighting; break;
Expand Down
2 changes: 1 addition & 1 deletion shaders_inc/RenderPBR.psh.h
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@
" case DEBUG_VIEW_DIFFUSE_COLOR: OutColor.rgb = SrfInfo.DiffuseColor; break;\n"
" case DEBUG_VIEW_SPECULAR_COLOR: OutColor.rgb = SrfInfo.Reflectance0; break;\n"
" case DEBUG_VIEW_REFLECTANCE90: OutColor.rgb = SrfInfo.Reflectance90; break;\n"
" case DEBUG_VIEW_MESH_NORMAL: OutColor.rgb = abs(MeshNormal/ max(length(MeshNormal), 1e-3)); break;\n"
" case DEBUG_VIEW_MESH_NORMAL: OutColor.rgb = abs(MeshNormal/ max(length(MeshNormal), 1e-3)); break;\n"
" case DEBUG_VIEW_PERTURBED_NORMAL: OutColor.rgb = abs(perturbedNormal); break;\n"
" case DEBUG_VIEW_NDOTV: OutColor.rgb = dot(perturbedNormal, view) * float3(1.0, 1.0, 1.0); break;\n"
" case DEBUG_VIEW_DIRECT_LIGHTING: OutColor.rgb = DirectLighting; break;\n"
Expand Down
14 changes: 0 additions & 14 deletions shaders_inc/RenderPBRCommon.fxh.h

This file was deleted.

0 comments on commit 18838ca

Please sign in to comment.