[Scummvm-git-logs] scummvm master -> 93a03242e312e87a3a21847df091a009436e979a
grisenti
noreply at scummvm.org
Tue Oct 10 17:14:56 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
93a03242e3 HPL1: Fix environment reflect shader
Commit: 93a03242e312e87a3a21847df091a009436e979a
https://github.com/scummvm/scummvm/commit/93a03242e312e87a3a21847df091a009436e979a
Author: grisenti (emanuele at grisenti.net)
Date: 2023-10-10T19:14:17+02:00
Commit Message:
HPL1: Fix environment reflect shader
Changed paths:
engines/hpl1/engine/impl/shaders/hpl1_Diffuse_EnvMap_Reflect.fragment
diff --git a/engines/hpl1/engine/impl/shaders/hpl1_Diffuse_EnvMap_Reflect.fragment b/engines/hpl1/engine/impl/shaders/hpl1_Diffuse_EnvMap_Reflect.fragment
index 0353622cb3e..a0697ffffc6 100644
--- a/engines/hpl1/engine/impl/shaders/hpl1_Diffuse_EnvMap_Reflect.fragment
+++ b/engines/hpl1/engine/impl/shaders/hpl1_Diffuse_EnvMap_Reflect.fragment
@@ -11,6 +11,6 @@ uniform samplerCube tex1;
void main() {
vec4 diffuseColor = texture(tex0, vUv.st);
- vec4 col2 = textureCube(tex1, vUv2);
- outColor = vec4(diffuseColor.xyz, diffuseColor.a * ( 1.0 - col2.a));
+ vec4 reflectedColor = textureCube(tex1, vUv2);
+ outColor = mix(diffuseColor, reflectedColor, diffuseColor.a);
}
\ No newline at end of file
More information about the Scummvm-git-logs
mailing list