Page Menu
Home
Search
Configure Global Search
Log In
Differential
D6447
Diff 20923
source/blender/gpu/shaders/material/gpu_shader_material_math_util.glsl
Changeset View
what I meant with multiline macros is the use of \
You must write the whole macro in one line.
#define FLOORFRAC(x, X, x_floor, x_fract) x_floor = floor(x);X = int(x_floor); x_fract = x - x_floor;
rename X to x_int