Blender V5.3
gpu_shader_material_vector_math.bsl.hh File Reference

Go to the source code of this file.

Functions

float3 vector_math_safe_normalize (float3 a)
void vector_math_add (float3 a, float3 b, float3, float, float3 &outVector, float &)
void vector_math_subtract (float3 a, float3 b, float3, float, float3 &outVector, float &)
void vector_math_multiply (float3 a, float3 b, float3, float, float3 &outVector, float &)
void vector_math_divide (float3 a, float3 b, float3, float, float3 &outVector, float &)
void vector_math_divide_self (float3 a, float3, float3, float, float3 &outVector, float &)
void vector_math_cross (float3 a, float3 b, float3, float, float3 &outVector, float &)
void vector_math_project (float3 a, float3 b, float3, float, float3 &outVector, float &)
void vector_math_reflect (float3 a, float3 b, float3, float, float3 &outVector, float &)
void vector_math_dot (float3 a, float3 b, float3, float, float3 &, float &outValue)
void vector_math_distance (float3 a, float3 b, float3, float, float3 &, float &outValue)
void vector_math_length (float3 a, float3, float3, float, float3 &, float &outValue)
void vector_math_scale (float3 a, float3, float3, float scale, float3 &outVector, float &)
void vector_math_normalize (float3 a, float3, float3, float, float3 &outVector, float &)
void vector_math_snap (float3 a, float3 b, float3, float, float3 &outVector, float &)
void vector_math_snap_self (float3 a, float3, float3, float, float3 &outVector, float &)
void vector_math_floor (float3 a, float3, float3, float, float3 &outVector, float &)
void vector_math_ceil (float3 a, float3, float3, float, float3 &outVector, float &)
void vector_math_modulo (float3 a, float3 b, float3, float, float3 &outVector, float &)
void vector_math_wrap (float3 a, float3 b, float3 c, float, float3 &outVector, float &)
void vector_math_fraction (float3 a, float3, float3, float, float3 &outVector, float &)
void vector_math_absolute (float3 a, float3, float3, float, float3 &outVector, float &)
void vector_math_power (float3 a, float3 b, float3, float, float3 &outVector, float &)
void vector_math_sign (float3 a, float3, float3, float, float3 &outVector, float &)
void vector_math_round (float3 a, float3, float3, float, float3 &outVector, float &)
void vector_math_minimum (float3 a, float3 b, float3, float, float3 &outVector, float &)
void vector_math_maximum (float3 a, float3 b, float3, float, float3 &outVector, float &)
void vector_math_sine (float3 a, float3, float3, float, float3 &outVector, float &)
void vector_math_cosine (float3 a, float3, float3, float, float3 &outVector, float &)
void vector_math_tangent (float3 a, float3, float3, float, float3 &outVector, float &)
void vector_math_refract (float3 a, float3 b, float3, float scale, float3 &outVector, float &)
void vector_math_faceforward (float3 a, float3 b, float3 c, float, float3 &outVector, float &)
void vector_math_multiply_add (float3 a, float3 b, float3 c, float, float3 &outVector, float &)

Function Documentation

◆ vector_math_absolute()

void vector_math_absolute ( float3 a,
float3 ,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 165 of file gpu_shader_material_vector_math.bsl.hh.

References abs, and vector_math_absolute().

Referenced by vector_math_absolute().

◆ vector_math_add()

void vector_math_add ( float3 a,
float3 b,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 17 of file gpu_shader_material_vector_math.bsl.hh.

References b, and vector_math_add().

Referenced by vector_math_add().

◆ vector_math_ceil()

void vector_math_ceil ( float3 a,
float3 ,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 137 of file gpu_shader_material_vector_math.bsl.hh.

References ceil, and vector_math_ceil().

Referenced by vector_math_ceil().

◆ vector_math_cosine()

void vector_math_cosine ( float3 a,
float3 ,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 214 of file gpu_shader_material_vector_math.bsl.hh.

References cos, and vector_math_cosine().

Referenced by vector_math_cosine().

◆ vector_math_cross()

void vector_math_cross ( float3 a,
float3 b,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 53 of file gpu_shader_material_vector_math.bsl.hh.

References b, cross, and vector_math_cross().

Referenced by vector_math_cross().

◆ vector_math_distance()

void vector_math_distance ( float3 a,
float3 b,
float3 ,
float ,
float3 & ,
float & outValue )

Definition at line 82 of file gpu_shader_material_vector_math.bsl.hh.

References b, distance(), and vector_math_distance().

Referenced by vector_math_distance().

◆ vector_math_divide()

void vector_math_divide ( float3 a,
float3 b,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 38 of file gpu_shader_material_vector_math.bsl.hh.

References b, safe_divide(), and vector_math_divide().

Referenced by vector_math_divide().

◆ vector_math_divide_self()

void vector_math_divide_self ( float3 a,
float3 ,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 46 of file gpu_shader_material_vector_math.bsl.hh.

References notEqual, and vector_math_divide_self().

Referenced by vector_math_divide_self().

◆ vector_math_dot()

void vector_math_dot ( float3 a,
float3 b,
float3 ,
float ,
float3 & ,
float & outValue )

Definition at line 75 of file gpu_shader_material_vector_math.bsl.hh.

References b, dot(), and vector_math_dot().

Referenced by vector_math_dot().

◆ vector_math_faceforward()

void vector_math_faceforward ( float3 a,
float3 b,
float3 c,
float ,
float3 & outVector,
float &  )

◆ vector_math_floor()

void vector_math_floor ( float3 a,
float3 ,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 130 of file gpu_shader_material_vector_math.bsl.hh.

References floor, and vector_math_floor().

Referenced by vector_math_floor().

◆ vector_math_fraction()

void vector_math_fraction ( float3 a,
float3 ,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 158 of file gpu_shader_material_vector_math.bsl.hh.

References fract(), and vector_math_fraction().

Referenced by vector_math_fraction().

◆ vector_math_length()

void vector_math_length ( float3 a,
float3 ,
float3 ,
float ,
float3 & ,
float & outValue )

Definition at line 89 of file gpu_shader_material_vector_math.bsl.hh.

References length(), and vector_math_length().

Referenced by vector_math_length().

◆ vector_math_maximum()

void vector_math_maximum ( float3 a,
float3 b,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 200 of file gpu_shader_material_vector_math.bsl.hh.

References b, max, and vector_math_maximum().

Referenced by vector_math_maximum().

◆ vector_math_minimum()

void vector_math_minimum ( float3 a,
float3 b,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 193 of file gpu_shader_material_vector_math.bsl.hh.

References b, min, and vector_math_minimum().

Referenced by vector_math_minimum().

◆ vector_math_modulo()

void vector_math_modulo ( float3 a,
float3 b,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 144 of file gpu_shader_material_vector_math.bsl.hh.

References b, compatible_mod(), and vector_math_modulo().

Referenced by vector_math_modulo().

◆ vector_math_multiply()

void vector_math_multiply ( float3 a,
float3 b,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 31 of file gpu_shader_material_vector_math.bsl.hh.

References b, and vector_math_multiply().

Referenced by vector_math_multiply().

◆ vector_math_multiply_add()

void vector_math_multiply_add ( float3 a,
float3 b,
float3 c,
float ,
float3 & outVector,
float &  )

Definition at line 242 of file gpu_shader_material_vector_math.bsl.hh.

References b, and vector_math_multiply_add().

Referenced by vector_math_multiply_add().

◆ vector_math_normalize()

void vector_math_normalize ( float3 a,
float3 ,
float3 ,
float ,
float3 & outVector,
float &  )

◆ vector_math_power()

void vector_math_power ( float3 a,
float3 b,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 172 of file gpu_shader_material_vector_math.bsl.hh.

References b, compatible_pow(), and vector_math_power().

Referenced by vector_math_power().

◆ vector_math_project()

void vector_math_project ( float3 a,
float3 b,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 60 of file gpu_shader_material_vector_math.bsl.hh.

References b, dot(), and vector_math_project().

Referenced by vector_math_project().

◆ vector_math_reflect()

void vector_math_reflect ( float3 a,
float3 b,
float3 ,
float ,
float3 & outVector,
float &  )

◆ vector_math_refract()

void vector_math_refract ( float3 a,
float3 b,
float3 ,
float scale,
float3 & outVector,
float &  )

◆ vector_math_round()

void vector_math_round ( float3 a,
float3 ,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 186 of file gpu_shader_material_vector_math.bsl.hh.

References floor, and vector_math_round().

Referenced by vector_math_round().

◆ vector_math_safe_normalize()

◆ vector_math_scale()

void vector_math_scale ( float3 a,
float3 ,
float3 ,
float scale,
float3 & outVector,
float &  )

Definition at line 96 of file gpu_shader_material_vector_math.bsl.hh.

References scale(), and vector_math_scale().

Referenced by vector_math_scale().

◆ vector_math_sign()

void vector_math_sign ( float3 a,
float3 ,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 179 of file gpu_shader_material_vector_math.bsl.hh.

References sign(), and vector_math_sign().

Referenced by vector_math_sign().

◆ vector_math_sine()

void vector_math_sine ( float3 a,
float3 ,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 207 of file gpu_shader_material_vector_math.bsl.hh.

References sin, and vector_math_sine().

Referenced by vector_math_sine().

◆ vector_math_snap()

void vector_math_snap ( float3 a,
float3 b,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 115 of file gpu_shader_material_vector_math.bsl.hh.

References b, floor, safe_divide(), and vector_math_snap().

Referenced by vector_math_snap().

◆ vector_math_snap_self()

void vector_math_snap_self ( float3 a,
float3 ,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 123 of file gpu_shader_material_vector_math.bsl.hh.

References vector_math_snap_self().

Referenced by vector_math_snap_self().

◆ vector_math_subtract()

void vector_math_subtract ( float3 a,
float3 b,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 24 of file gpu_shader_material_vector_math.bsl.hh.

References b, and vector_math_subtract().

Referenced by vector_math_subtract().

◆ vector_math_tangent()

void vector_math_tangent ( float3 a,
float3 ,
float3 ,
float ,
float3 & outVector,
float &  )

Definition at line 221 of file gpu_shader_material_vector_math.bsl.hh.

References tan, and vector_math_tangent().

Referenced by vector_math_tangent().

◆ vector_math_wrap()

void vector_math_wrap ( float3 a,
float3 b,
float3 c,
float ,
float3 & outVector,
float &  )

Definition at line 151 of file gpu_shader_material_vector_math.bsl.hh.

References b, vector_math_wrap(), and wrap().

Referenced by vector_math_wrap().