A macro defined in __bbmod_shader_set.gml
String
Name of a fragment shader uniform of type vec4
that holds an ID of the instance that draws the model, encoded into a color.
shader_set_uniform_f(
shader_get_uniform(_shader, BBMOD_U_INSTANCE_ID),
((id & $000000FF) >> 0) / 255,
((id & $0000FF00) >> 8) / 255,
((id & $00FF0000) >> 16) / 255,
((id & $FF000000) >> 24) / 255);
Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.