Blender V5.3
gpu_shader_material_random_value.bsl.hh File Reference

Go to the source code of this file.

Functions

void random_value_vector (float3 min_value, float3 max_value, int id, int seed, float3 &result)
void random_value_float (float min_value, float max_value, int id, int seed, float &result)
void random_value_int (int min_value, int max_value, int id, int seed, int &result)
void random_value_bool (float probability, int id, int seed, bool &result)

Function Documentation

◆ random_value_bool()

void random_value_bool ( float probability,
int id,
int seed,
bool & result )

◆ random_value_float()

void random_value_float ( float min_value,
float max_value,
int id,
int seed,
float & result )

◆ random_value_int()

void random_value_int ( int min_value,
int max_value,
int id,
int seed,
int & result )

Definition at line 26 of file gpu_shader_material_random_value.bsl.hh.

References hash, hash_uint2(), and random_value_int().

Referenced by random_value_int().

◆ random_value_vector()

void random_value_vector ( float3 min_value,
float3 max_value,
int id,
int seed,
float3 & result )