Fix mistake in previous GLSL cleanup commit.

This commit is contained in:
2018-04-19 19:35:36 +02:00
parent bef7d67cf5
commit daff3c442f

View File

@@ -898,6 +898,11 @@ void texco_norm(vec3 normal, out vec3 outnormal)
outnormal = normalize(normal);
}
vec3 mtex_2d_mapping(vec3 vec)
{
return vec3(vec.xy * 0.5 + vec2(0.5), vec.z);
}
/** helper method to extract the upper left 3x3 matrix from a 4x4 matrix */
mat3 to_mat3(mat4 m4)
{
@@ -1205,6 +1210,9 @@ void node_subsurface_scattering(
#else
result.sss_data.rgb *= color.rgb;
#endif
#else
node_bsdf_diffuse(color, 0.0, N, result);
#endif
}
void node_bsdf_refraction(vec4 color, float roughness, float ior, vec3 N, out Closure result)