Blender V4.3
workbench_shader_shared.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#ifndef GPU_SHADER
7#endif
8
9#define WORKBENCH_SHADER_SHARED_H
10
11struct LightData {
12 float4 direction;
14 float4 diffuse_color_wrap; /* rgb: diffuse col a: wrapped lighting factor */
15};
16
52
55 float4 corners[16];
56 float4 planes[12];
59 int _pad0;
60 int _pad1;
61};
62
packed_float3 light_direction_ws
LightData lights[4]