GPUMaterial: Fix shader compilation when using UDIM textures
This commit is contained in:
parent
96eab08755
commit
15a24f3d7f
|
@ -101,7 +101,7 @@ static int node_shader_gpu_tex_image(GPUMaterial *mat,
|
|||
|
||||
if (ima->source == IMA_SRC_TILED) {
|
||||
const char *gpu_node_name = use_cubic ? "node_tex_tile_cubic" : "node_tex_tile_linear";
|
||||
GPUNodeLink *gpu_image = GPU_image(mat, ima, iuser, sampler_state);
|
||||
GPUNodeLink *gpu_image = GPU_image_tiled(mat, ima, iuser, sampler_state);
|
||||
GPUNodeLink *gpu_image_tile_mapping = GPU_image_tiled_mapping(mat, ima, iuser);
|
||||
/* UDIM tiles needs a samper2DArray and sampler1DArray for tile mapping. */
|
||||
GPU_stack_link(mat, node, gpu_node_name, in, out, gpu_image, gpu_image_tile_mapping);
|
||||
|
|
Loading…
Reference in New Issue