By now it is just a "compositor", so move the files one folder up. Things that were under realtime_compositor/intern move into already existing intern folder. Pull Request: https://projects.blender.org/blender/blender/pulls/132004
15 lines
438 B
GLSL
15 lines
438 B
GLSL
/* SPDX-FileCopyrightText: 2022 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#include "gpu_shader_compositor_texture_utilities.glsl"
|
|
|
|
void main()
|
|
{
|
|
ivec2 texel = ivec2(gl_GlobalInvocationID.xy);
|
|
float value = texture_load(input_tx, texel).x;
|
|
float normalized_value = (value - minimum) * scale;
|
|
float clamped_value = clamp(normalized_value, 0.0, 1.0);
|
|
imageStore(output_img, texel, vec4(clamped_value));
|
|
}
|