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

Make Projected Grid render better in dark areas and lit scenes #188

Merged
merged 1 commit into from
Nov 11, 2018
Merged
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
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"
}
}