Blender V5.3
gpu_shader_material_tex_gradient.bsl.hh File Reference

Go to the source code of this file.

Functions

float calc_gradient (float3 p, int gradient_type)
void node_tex_gradient (float3 co, float gradient_type, float4 &color, float &fac)

Function Documentation

◆ calc_gradient()

float calc_gradient ( float3 p,
int gradient_type )

◆ node_tex_gradient()

void node_tex_gradient ( float3 co,
float gradient_type,
float4 & color,
float & fac )

Definition at line 48 of file gpu_shader_material_tex_gradient.bsl.hh.

References calc_gradient(), clamp(), and node_tex_gradient().

Referenced by node_tex_gradient().