This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
csce441pine64backup/L16/resources/frag.glsl

11 lines
186 B
GLSL

#version 120
uniform sampler2D alphaTexture;
varying vec4 vCol;
void main()
{
float alpha = texture2D(alphaTexture, gl_PointCoord).r;
gl_FragColor = vec4(vCol.rgb, vCol.a*alpha);
}