GPT is reall good at generating comments and fixing spelling error
This commit is contained in:
14
shaders/particle_render.frag
Normal file
14
shaders/particle_render.frag
Normal file
@@ -0,0 +1,14 @@
|
||||
#version 300 es
|
||||
precision highp float;
|
||||
|
||||
in vec3 vColor;
|
||||
in float vAlpha;
|
||||
in vec2 vQuadCoord;
|
||||
|
||||
out vec4 fragColor;
|
||||
|
||||
void main() {
|
||||
float dist = length(vQuadCoord);
|
||||
float falloff = smoothstep(1.0, 0.5, dist);
|
||||
fragColor = vec4(vColor, vAlpha * falloff);
|
||||
}
|
||||
Reference in New Issue
Block a user