Skip to content

cf_material_set_texture_fs

Category: graphics
GitHub: cute_graphics.h


Sets up a texture, used for inputs to fragment shaders.

void cf_material_set_texture_fs(CF_Material material, const char* name, CF_Texture texture);
Parameters Description
material The material.
name The name of the texture, for referring to within a fragment shader.
texture Data (usually an image) for a shader to access.

Remarks

See CF_Texture and CF_TextureParams for an overview.

CF_UniformType
CF_Material
cf_make_material
cf_destroy_material
cf_material_set_render_state
cf_material_set_texture_vs
cf_material_set_uniform_fs
cf_material_set_uniform_vs