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.
This commit is contained in:
parent
21f088018a
commit
6f0b80425b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue