mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-13 16:44:50 +02:00
#22 fix crystals shading
This commit is contained in:
@@ -412,10 +412,6 @@ uniform vec4 uMaterial; // x - diffuse, y - ambient, z - specular, w - alpha
|
|||||||
discard;
|
discard;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef PASS_SHADOW
|
|
||||||
color *= vDiffuse;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef PASS_SHADOW
|
#ifdef PASS_SHADOW
|
||||||
|
|
||||||
#ifdef SHADOW_COLOR
|
#ifdef SHADOW_COLOR
|
||||||
@@ -425,8 +421,9 @@ uniform vec4 uMaterial; // x - diffuse, y - ambient, z - specular, w - alpha
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
color *= vDiffuse;
|
||||||
|
|
||||||
#ifndef TYPE_FLASH
|
#if !defined(TYPE_FLASH) && !defined(TYPE_MIRROR)
|
||||||
|
|
||||||
#ifdef PASS_AMBIENT
|
#ifdef PASS_AMBIENT
|
||||||
color.xyz *= vLight.x;
|
color.xyz *= vLight.x;
|
||||||
|
Reference in New Issue
Block a user