1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-12 16:14:25 +02:00

#22 fix crystals shading

This commit is contained in:
XProger
2017-09-18 23:25:50 +03:00
parent 505587a129
commit 124a66c10f

View File

@@ -412,10 +412,6 @@ uniform vec4 uMaterial; // x - diffuse, y - ambient, z - specular, w - alpha
discard;
#endif
#ifndef PASS_SHADOW
color *= vDiffuse;
#endif
#ifdef PASS_SHADOW
#ifdef SHADOW_COLOR
@@ -425,8 +421,9 @@ uniform vec4 uMaterial; // x - diffuse, y - ambient, z - specular, w - alpha
#endif
#else
color *= vDiffuse;
#ifndef TYPE_FLASH
#if !defined(TYPE_FLASH) && !defined(TYPE_MIRROR)
#ifdef PASS_AMBIENT
color.xyz *= vLight.x;