mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
- Spawn dark point-sprite insects buzzing around cattails/reeds/kelp/seaweed - Fix firefly M2 particles: exempt from alpha dampening and forced gravity - Make water shoreline/crest foam more irregular with UV warping and bluer tint
14 lines
346 B
GLSL
14 lines
346 B
GLSL
#version 450
|
|
|
|
layout(location = 0) in float vAlpha;
|
|
|
|
layout(location = 0) out vec4 outColor;
|
|
|
|
void main() {
|
|
vec2 p = gl_PointCoord - vec2(0.5);
|
|
float dist = length(p);
|
|
if (dist > 0.5) discard;
|
|
float alpha = smoothstep(0.5, 0.05, dist) * vAlpha;
|
|
// Dark brown/black insect color
|
|
outColor = vec4(0.12, 0.08, 0.05, alpha);
|
|
}
|