[Bf-blender-cvs] [d7b2093db3] master: Return correct alpha for environment map in GLSL

Alexander Romanov noreply at git.blender.org
Tue Jan 17 09:52:33 CET 2017


Commit: d7b2093db34d3f68e8b98566ce4a728592dd3085
Author: Alexander Romanov
Date:   Tue Jan 17 11:52:02 2017 +0300
Branches: master
https://developer.blender.org/rBd7b2093db34d3f68e8b98566ce4a728592dd3085

Return correct alpha for environment map in GLSL

===================================================================

M	source/blender/gpu/shaders/gpu_shader_material.glsl

===================================================================

diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl
index 4416b6494f..aa583c5ecf 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -1358,7 +1358,7 @@ void mtex_cube_map_refl_from_refldir(
         samplerCube ima, vec3 reflecteddirection, out float value, out vec4 color)
 {
         color = textureCube(ima, reflecteddirection);
-        value = 1.0;
+        value = color.a;
 }
 
 void mtex_cube_map_refl(




More information about the Bf-blender-cvs mailing list