Skip to content

cf_material_set_texture_fs_sampler

Category: graphics
GitHub: cute_graphics.h


Binds a texture to the fragment stage, read through a standalone sampler.

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

Remarks

The two-views-of-one-texture tool: bind a depth map once through a comparison sampler for PCF and once raw for a blocker search (PCSS), or one image NEAREST and LINEAR in different passes. See cf_material_set_texture_vs_sampler.

CF_Sampler
cf_make_sampler
cf_material_set_texture_fs
cf_material_set_texture_vs_sampler