cf_draw3d_set_uniform¶
Category: draw3d
GitHub: cute_draw3d.h
Sets a uniform for subsequent mesh submissions, by name.
| Parameters | Description |
|---|---|
name |
The uniform's name in the shader. |
data |
A pointer to the data to send. |
type |
The CF_UniformType of the data. |
array_length |
The number of elements to send. |
Remarks¶
u_view_projection is reserved -- it is set from the camera stacks and cannot be
overridden here.
Related Pages¶
cf_draw3d_set_texture
cf_draw3d_set_uniform_int
cf_draw3d_set_uniform_float
cf_draw3d_set_uniform_v2
cf_draw3d_set_uniform_v3
cf_draw3d_set_uniform_m4
cf_draw3d_set_uniform_color