2023-08-16 00:20:26 +10:00
|
|
|
/* SPDX-FileCopyrightText: 2022 Blender Authors
|
2023-05-31 16:19:06 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
2022-01-17 14:45:22 +01:00
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
|
* \ingroup gpu
|
|
|
|
|
*/
|
|
|
|
|
|
2024-11-12 18:53:34 +01:00
|
|
|
#ifdef GPU_SHADER
|
|
|
|
|
# pragma once
|
2025-09-15 17:22:19 +02:00
|
|
|
# include "gpu_shader_compat.hh"
|
2024-11-12 18:53:34 +01:00
|
|
|
|
|
|
|
|
# include "GPU_shader_shared.hh"
|
|
|
|
|
|
|
|
|
|
# define USE_WORLD_CLIP_PLANES
|
|
|
|
|
#endif
|
|
|
|
|
|
2022-01-17 14:45:22 +01:00
|
|
|
#include "gpu_shader_create_info.hh"
|
|
|
|
|
|
|
|
|
|
GPU_SHADER_CREATE_INFO(gpu_clip_planes)
|
2024-10-04 19:04:40 +02:00
|
|
|
UNIFORM_BUF_FREQ(1, GPUClipPlanes, clipPlanes, PASS)
|
|
|
|
|
TYPEDEF_SOURCE("GPU_shader_shared.hh")
|
|
|
|
|
DEFINE("USE_WORLD_CLIP_PLANES")
|
|
|
|
|
GPU_SHADER_CREATE_END()
|