Raylib5Backend.alphaImageShaderCode

Shader code for alpha images.

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; } };

Meta