mirror of
https://github.com/XProger/OpenLara.git
synced 2025-02-24 15:32:30 +01:00
fix inventory items fade out
This commit is contained in:
parent
710bf99290
commit
c14096ebc1
@ -509,10 +509,9 @@ struct Inventory {
|
||||
|
||||
Core::setBasis(joints, m.mCount);
|
||||
|
||||
Core::setBlendMode(bmNone);
|
||||
Core::setBlendMode(bmPremult);
|
||||
mesh->transparent = 0;
|
||||
mesh->renderModel(desc.model);
|
||||
Core::setBlendMode(bmPremult);
|
||||
mesh->transparent = 1;
|
||||
mesh->renderModel(desc.model);
|
||||
Core::setBlendMode(bmAdd);
|
||||
|
@ -164,7 +164,7 @@ uniform vec4 uFogParams;
|
||||
|
||||
void _diffuse() {
|
||||
#ifndef PASS_SHADOW
|
||||
vDiffuse = vec4(aColor.xyz * (uMaterial.x * 1.8), uMaterial.w);
|
||||
vDiffuse = vec4(aColor.xyz * (uMaterial.x * 1.8), 1.0) * uMaterial.w;
|
||||
|
||||
#ifdef UNDERWATER
|
||||
vDiffuse.xyz *= UNDERWATER_COLOR;
|
||||
|
Loading…
x
Reference in New Issue
Block a user