quakeforge/libs/video/renderer/glsl/trail.frag
Bill Currie ddd8885cd6 Start working on solid trails for smoke etc.
The implementation is based on
http://codeflow.org/entries/2012/aug/05/webgl-rendering-of-solid-trails/

The shaders have been written and compile and link. The next step is to
generate some data for them.
2014-01-29 16:37:48 +09:00

10 lines
162 B
GLSL

uniform sampler2D smoke;
varying vec2 texcoord;
varying vec3 vBC;
void
main (void)
{
gl_FragColor = texture2D (smoke, texcoord) * vec4 (1.0, 1.0, 1.0, 0.7);
}