don't use web entity texel color alpha as per tony's suggestion

This commit is contained in:
SamGondelman 2016-08-05 11:27:56 -07:00
parent f2ee57f2de
commit 8494400047

View file

@ -28,10 +28,10 @@ void main(void) {
texel = colorToLinearRGBA(texel); texel = colorToLinearRGBA(texel);
const float ALPHA_THRESHOLD = 0.999; const float ALPHA_THRESHOLD = 0.999;
if (_color.a * texel.a < ALPHA_THRESHOLD) { if (_color.a < ALPHA_THRESHOLD) {
packDeferredFragmentTranslucent( packDeferredFragmentTranslucent(
normalize(_normal), normalize(_normal),
_color.a * texel.a, _color.a,
_color.rgb * texel.rgb, _color.rgb * texel.rgb,
DEFAULT_FRESNEL, DEFAULT_FRESNEL,
DEFAULT_ROUGHNESS); DEFAULT_ROUGHNESS);