Add rounded rectangle shaders and remove masks

This commit is contained in:
2020-07-21 16:41:26 -07:00
parent d5702ee0e7
commit e57bed6ed9
9 changed files with 272 additions and 584 deletions

View File

@ -153,10 +153,6 @@ inline float BoundsDist(float3 p, float3 normal, float3 projNormal) {
#endif
}
inline float SDFAA(float dist) {
float ddist = length(float2(ddx(dist), ddy(dist)));
float pixelDist = dist / ddist;
return saturate(0.5-pixelDist);
}
#endif