Initial commit
This commit is contained in:
18
engines/stark/shaders/stark_prop.fragment
Normal file
18
engines/stark/shaders/stark_prop.fragment
Normal file
@@ -0,0 +1,18 @@
|
||||
in vec2 Texcoord;
|
||||
in vec3 Color;
|
||||
|
||||
OUTPUT
|
||||
|
||||
uniform UBOOL textured;
|
||||
uniform vec3 color;
|
||||
uniform sampler2D tex;
|
||||
|
||||
void main() {
|
||||
outColor = vec4(Color, 1.0);
|
||||
|
||||
if (UBOOL_TEST(textured)) {
|
||||
outColor *= texture(tex, Texcoord);
|
||||
} else {
|
||||
outColor *= vec4(color, 1.0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user