Files
test/source/blender/compositor/shaders/compositor_sample_pixel.glsl
Tenkai Raiko de9b24abad Fix: Map UV node does not work with single values
The Map UV node does not work when the UV input is a single value, where
it is expected that the output will also be single value. This was
simply not implemented for GPU, so this patch does that.

Pull Request: https://projects.blender.org/blender/blender/pulls/143096
2025-08-05 08:09:25 +02:00

16 lines
385 B
GLSL

/* SPDX-FileCopyrightText: 2023 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
#include "gpu_shader_bicubic_sampler_lib.glsl"
#include "gpu_shader_compositor_texture_utilities.glsl"
void main()
{
int2 texel = int2(gl_GlobalInvocationID.xy);
float4 sampled_color = SAMPLER_FUNCTION(input_tx, coordinates_u);
imageStore(output_img, texel, sampled_color);
}