2024-08-25 13:42:26 +01:00
|
|
|
#version 150
|
|
|
|
#define FRAGMENT_SHADER
|
|
|
|
#define RENDERTYPE_GUI
|
|
|
|
|
|
|
|
#moj_import <gui.glsl>
|
2024-08-25 13:43:53 +01:00
|
|
|
#moj_import <version.glsl>
|
2024-08-25 13:42:26 +01:00
|
|
|
|
|
|
|
in vec4 vertexColor;
|
|
|
|
|
|
|
|
uniform vec4 ColorModulator;
|
|
|
|
|
|
|
|
out vec4 fragColor;
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
transform.color = vertexColor;
|
|
|
|
|
|
|
|
if(transform.color.a == 0.0)
|
|
|
|
discard;
|
|
|
|
|
|
|
|
fragColor = transform.color * ColorModulator;
|
|
|
|
}
|