2023-08-24 10:54:59 +10:00
|
|
|
/* SPDX-FileCopyrightText: 2016-2022 Blender Authors
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
2016-09-22 13:20:44 +00:00
|
|
|
|
2025-10-16 19:12:16 +02:00
|
|
|
#include "infos/gpu_shader_3D_image_infos.hh"
|
2024-11-12 18:53:34 +01:00
|
|
|
|
2025-10-16 19:12:16 +02:00
|
|
|
FRAGMENT_SHADER_CREATE_INFO(gpu_shader_3D_image)
|
2024-11-12 18:53:34 +01:00
|
|
|
|
2025-07-03 14:07:58 +02:00
|
|
|
#include "gpu_shader_colorspace_lib.glsl"
|
|
|
|
|
|
2016-09-22 13:20:44 +00:00
|
|
|
void main()
|
|
|
|
|
{
|
2017-05-19 11:02:32 -04:00
|
|
|
fragColor = texture(image, texCoord_interp);
|
2025-10-16 19:12:16 +02:00
|
|
|
#ifdef BLENDER_SCENE_LINEAR_TO_REC709
|
|
|
|
|
fragColor = blender_scene_linear_to_rec709_srgb(gpu_scene_linear_to_rec709, fragColor);
|
|
|
|
|
#endif
|
|
|
|
|
fragColor = blender_rec709_srgb_to_output_space(fragColor);
|
2016-09-22 13:20:44 +00:00
|
|
|
}
|