From 2f9dcfabd8b3a29a6780a254a30d584c1ea0d834 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Wed, 23 May 2018 12:26:24 +0200 Subject: [PATCH] Use FPU_SHAD_SCALE.scale_factor for shadow intensity instead of hardcoded value. --- core/rend/gles/gldraw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rend/gles/gldraw.cpp b/core/rend/gles/gldraw.cpp index 7565371b5..78d4983fa 100644 --- a/core/rend/gles/gldraw.cpp +++ b/core/rend/gles/gldraw.cpp @@ -925,7 +925,7 @@ void DrawModVols(int first, int count) glcache.BlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glcache.UseProgram(gl.modvol_shader.program); - glUniform1f(gl.modvol_shader.sp_ShaderColor,0.5f); + glUniform1f(gl.modvol_shader.sp_ShaderColor, 1 - FPU_SHAD_SCALE.scale_factor / 256.f); glcache.DepthMask(GL_FALSE); glcache.DepthFunc(GL_GREATER);