Page MenuHomePhabricator (Chris)

cutoff_ps.txt
No OneTemporary

Authored By
Unknown
Size
241 B
Referenced Files
None
Subscribers
None

cutoff_ps.txt

varying vec2 uv;
varying float renderpos;
uniform sampler2D texture;
uniform float cutoff;
void main() {
if(renderpos > (cutoff * 2.0) - 1.0)
discard;
gl_FragColor.rgb = texture2D(texture, uv).rgb;
gl_FragColor.a = 1.0;
}

File Metadata

Mime Type
text/x-c
Expires
Sat, Nov 14, 3:03 PM (26 m, 55 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
127807
Default Alt Text
cutoff_ps.txt (241 B)

Event Timeline