Blender V5.3
gpu_shader_material_get_vector_component.bsl.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
8
9[[node]]
11{
12 if (index >= 0 && index <= 2) {
13 result = vector[index];
14 }
15 else {
16 result = 0.0f;
17 }
18}
#define index(i)
void node_get_vector_component(float3 vector, int index, float &result)