Skip to content

cf_material_set_texture_vs_sampler

Category: graphics
GitHub: cute_graphics.h


Binds a texture to the vertex stage, read through a standalone sampler instead of the texture's own.

void cf_material_set_texture_vs_sampler(CF_Material material, const char* name, CF_Texture texture, CF_Sampler sampler);

Remarks

The override lives on this material binding only -- other bindings of the same texture keep its baked sampler. A zero'd sampler restores the baked one.

CF_Sampler
cf_make_sampler
cf_material_set_texture_vs
cf_material_set_texture_fs_sampler