Merge remote-tracking branch 'origin/main'

This commit is contained in:
Julian Nießner
2021-05-14 11:14:17 +02:00
parent b11a7afab3
commit e907ff08bf
5 changed files with 303 additions and 44 deletions

View File

@@ -40,7 +40,7 @@ float4 MainPS(VertexShaderOutput input) : COLOR
float4 res = input.Color;
float distFromLine = length(input.Normal);
float alpha = 1.0 - ((clamp(distFromLine, (1.0 - feather),1.0) - (1.0 - feather)) / feather);
res.a = alpha;
//res.a = alpha;
return res;
}