v2026.04.02/bios/ScummVM/ScummVM/extra/shaders/hpl1_Diffuse_EnvMap_Reflect.fragment
2026-03-17 11:53:42 +01:00

16 lines
No EOL
335 B
Text

// Diffuse_EnvMap_Reflect.fragment
in vec3 vColor;
in vec3 vUv;
in vec3 vUv2;
OUTPUT
uniform sampler2D tex0; // diffuse
uniform samplerCube tex1;
void main() {
vec4 diffuseColor = texture(tex0, vUv.st);
vec4 reflectedColor = textureCube(tex1, vUv2);
outColor = mix(diffuseColor, reflectedColor, diffuseColor.a);
}