Skip to content
Snippets Groups Projects
Commit daff3c44 authored by Brecht Van Lommel's avatar Brecht Van Lommel
Browse files

Fix mistake in previous GLSL cleanup commit.

parent bef7d67c
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment