[Bf-blender-cvs] [6f0b80425b8] blender2.8: Fix shaders not working in Eevee
Dalai Felinto
noreply at git.blender.org
Mon Jun 26 12:15:23 CEST 2017
Commit: 6f0b80425b8da760acf9909feba2b0988ddedada
Author: Dalai Felinto
Date: Mon Jun 26 12:14:19 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB6f0b80425b8da760acf9909feba2b0988ddedada
Fix shaders not working in Eevee
Not a single node based shader was working since a recent merge from
master.
The merge brought changes from the principle bsdf shader where
unsupported gl_ProjectionMatrix was still being used.
===================================================================
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 88974148505..abbcfc61518 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -2657,7 +2657,7 @@ void node_bsdf_principled(vec4 base_color, float subsurface, vec3 subsurface_rad
float eta = (2.0 / (1.0 - sqrt(0.08 * specular))) - 1.0;
/* set the viewing vector */
- vec3 V = (gl_ProjectionMatrix[3][3] == 0.0) ? -normalize(I) : vec3(0.0, 0.0, 1.0);
+ vec3 V = (ProjectionMatrix[3][3] == 0.0) ? -normalize(I) : vec3(0.0, 0.0, 1.0);
/* get the tangent */
vec3 Tangent = T;
More information about the Bf-blender-cvs
mailing list