Fix T97827: material preview not displaying textures

Caused by rB281bcc1c1dd6 which did not properly made use
of `vec4` for UVs which are now loaded as attributes.
This commit is contained in:
2022-05-04 14:30:52 +02:00
parent cbeb8770cc
commit d86d7c935e
2 changed files with 9 additions and 2 deletions

View File

@@ -5,6 +5,13 @@ void differentiate_texco(vec3 v, out vec3 df)
df = v + dF_impl(v);
}
/* Overload for UVs which are loaded as generic attributes. */
void differentiate_texco(vec4 v, out vec3 df)
{
/* Implementation defined. */
df = v.xyz + dF_impl(v.xyz);
}
void node_bump(
float strength, float dist, float height, vec3 N, vec2 dHd, float invert, out vec3 result)
{