Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Assets/GFX/Shaders/Deferred/Internal-DeferredShading.shader
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ uniform int _ShowNormals;
uniform int _ShowRoughness;
uniform int _ShowAO;
uniform int _ShowMask;
uniform int _ShowFogOfWar;
uniform half LightingMultiplier;
uniform fixed4 SunColor;
uniform fixed4 SunDirection;
Expand Down Expand Up @@ -252,6 +253,9 @@ half4 CalculateLight (unity_v2f_deferred i)
if (_ShowRoughness) color.rgb = roughness.xxx;
if (_ShowAO) color.rgb = ambientOcclusion.xxx;
if (_ShowMask) color.rgb = albedo.rgb;
half2 center = half2(_GridScale, - _GridScale) * 0.5;
if (_ShowFogOfWar && length(wpos.xz - center) > 5) color.rgb = color.rgb * 0.67;


color.a = 1;
if(_Area > 0){
Expand Down
Loading