shader tweaks

This commit is contained in:
2020-03-10 18:45:12 -04:00
parent 63692ced17
commit fd51590a8c
4 changed files with 23 additions and 3 deletions

View File

@@ -7,6 +7,8 @@ in vec4 pos;
out vec4 color;
void main() {
if (pos.w > 0.8) discard;
float d = smoothstep(-2, 2, pos.z);
color = vec4(c * d, 1);
}