Initial commit
This commit is contained in:
14
engines/wintermute/base/gfx/opengl/shaders/wme_line.fragment
Normal file
14
engines/wintermute/base/gfx/opengl/shaders/wme_line.fragment
Normal file
@@ -0,0 +1,14 @@
|
||||
in vec4 Color;
|
||||
|
||||
uniform float alphaRef;
|
||||
uniform UBOOL alphaTest;
|
||||
|
||||
OUTPUT
|
||||
|
||||
void main() {
|
||||
outColor = Color;
|
||||
|
||||
if (UBOOL_TEST(alphaTest) && outColor.a < alphaRef) {
|
||||
discard;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user