Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #188 from Kerfuffles/patch-1
Browse files Browse the repository at this point in the history
Make Projected Grid render better in dark areas and lit scenes
  • Loading branch information
Henry00IS authored Nov 11, 2018
2 parents 5b0d83b + 07a0bb0 commit 56869fb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Internal/Shaders/BrushPreview.shader
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,12 @@ Shader "SabreCSG/BrushPreview"
grid.y = step((1.0 - _GridThickness)*_GridSize, mod(grid.y, _GridSize));

float g = saturate(grid.x + grid.y);

//o.Alpha = g;

o.Albedo = c.rgb + (g * _GridStrength * _GridToggle);

o.Emission = c.rgb + (g * _GridStrength * _GridToggle);
o.Alpha = c.a + (g * _GridStrength * _GridToggle);
}
ENDCG
}

Fallback "Legacy Shaders/Transparent/VertexLit"
}
}

0 comments on commit 56869fb

Please sign in to comment.