New modules compiled
This commit is contained in:
11
build/shaders/ppi_targets.frag
Normal file
11
build/shaders/ppi_targets.frag
Normal file
@@ -0,0 +1,11 @@
|
||||
#version 330 core
|
||||
in vec2 vUV; // [-1,1] range — distance from blob centre
|
||||
out vec4 fragColor;
|
||||
uniform vec3 uColor;
|
||||
uniform float uFalloff; // gaussian width: larger = tighter core
|
||||
void main() {
|
||||
float d = length(vUV);
|
||||
if (d > 1.0) discard;
|
||||
float intensity = exp(-uFalloff * d * d);
|
||||
fragColor = vec4(uColor * intensity, intensity);
|
||||
}
|
||||
Reference in New Issue
Block a user