Blender V5.3
gpu_shader_material_particle_info.bsl.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2019-2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
8
9[[node]]
10void particle_info(float &index,
11 float &random,
12 float &age,
13 float &life_time,
14 float3 &location,
15 float &size,
16 float3 &velocity,
17 float3 &angular_velocity)
18{
19 /* Unsupported for now. */
20 index = 0.0f;
21 random = 0.0f;
22 age = 0.0f;
23 life_time = 0.0f;
24 size = 0.0f;
25
26 location = float3(0.0f);
27 velocity = float3(0.0f);
28 angular_velocity = float3(0.0f);
29}
#define index(i)
void particle_info(float &index, float &random, float &age, float &life_time, float3 &location, float &size, float3 &velocity, float3 &angular_velocity)