mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
don't use web entity texel color alpha as per tony's suggestion
This commit is contained in:
parent
f2ee57f2de
commit
8494400047
1 changed files with 2 additions and 2 deletions
|
@ -28,10 +28,10 @@ void main(void) {
|
|||
texel = colorToLinearRGBA(texel);
|
||||
|
||||
const float ALPHA_THRESHOLD = 0.999;
|
||||
if (_color.a * texel.a < ALPHA_THRESHOLD) {
|
||||
if (_color.a < ALPHA_THRESHOLD) {
|
||||
packDeferredFragmentTranslucent(
|
||||
normalize(_normal),
|
||||
_color.a * texel.a,
|
||||
_color.a,
|
||||
_color.rgb * texel.rgb,
|
||||
DEFAULT_FRESNEL,
|
||||
DEFAULT_ROUGHNESS);
|
||||
|
|
Loading…
Reference in a new issue