formatting

This commit is contained in:
klemek
2020-12-19 17:21:06 +01:00
parent 63e8f2c5f6
commit 205a663e07
56 changed files with 1690 additions and 1297 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ float3 GetSurfaceNormal(float4 h, float bias)
float bevelWidth = max(.01, _OutlineWidth+_BevelWidth);
// Track outline
// Track outline
h -= .5;
h /= bevelWidth;
h = saturate(h+.5);
@@ -49,7 +49,7 @@ float3 GetSurfaceNormal(float4 h, float bias)
float3 GetSurfaceNormal(float2 uv, float bias, float3 delta)
{
// Read "height field"
float4 h = {tex2D(_MainTex, uv - delta.xz).a,
float4 h = {tex2D(_MainTex, uv - delta.xz).a,
tex2D(_MainTex, uv + delta.xz).a,
tex2D(_MainTex, uv - delta.zy).a,
tex2D(_MainTex, uv + delta.zy).a};