use web surface alpha

This commit is contained in:
SamGondelman 2019-03-15 15:32:31 -07:00
parent 98eec6b74d
commit 0d94030515
2 changed files with 3 additions and 3 deletions

View file

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

View file

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