mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-11 21:52:43 +02:00
Merge pull request #15200 from SamGondelman/web
Case 21755: Allow Web Entities to use alpha from html/qml textures
This commit is contained in:
commit
385970c39d
2 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@ layout(location=RENDER_UTILS_ATTR_TEXCOORD01) in vec4 _texCoord01;
|
|||
#define _texCoord1 _texCoord01.zw
|
||||
|
||||
void main(void) {
|
||||
vec4 texel = texture(originalTexture, _texCoord0.st);
|
||||
vec4 texel = texture(originalTexture, _texCoord0);
|
||||
texel = color_sRGBAToLinear(texel);
|
||||
packDeferredFragmentUnlit(normalize(_normalWS), 1.0, _color.rgb * texel.rgb);
|
||||
}
|
||||
|
|
|
@ -28,11 +28,11 @@ layout(location=RENDER_UTILS_ATTR_TEXCOORD01) in vec4 _texCoord01;
|
|||
#define _texCoord1 _texCoord01.zw
|
||||
|
||||
void main(void) {
|
||||
vec4 texel = texture(originalTexture, _texCoord0.st);
|
||||
vec4 texel = texture(originalTexture, _texCoord0);
|
||||
texel = color_sRGBAToLinear(texel);
|
||||
packDeferredFragmentTranslucent(
|
||||
normalize(_normalWS),
|
||||
_color.a,
|
||||
_color.a * texel.a,
|
||||
_color.rgb * texel.rgb,
|
||||
DEFAULT_ROUGHNESS);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue