Raylib5Backend.alphaImageShaderCode
class Raylib5Backend
enum alphaImageShaderCode =
q{
#version 330
in vec2 fragTexCoord;
in vec4 fragColor;
out vec4 finalColor;
uniform sampler2D texture0;
uniform vec4 colDiffuse;
void main() {
// Alpha masks are white to make them practical for modulation
vec4 texelColor = texture(texture0, fragTexCoord);
finalColor = vec4(1, 1, 1, texelColor.r) * colDiffuse * fragColor;
}
};
fluid backend raylib5 Raylib5Backend
destructorsfunctionsmanifest constants
Shader code for alpha images.