HC_Set_Shader_Textures

void HC_Set_Shader_Textures(Key shader_key, int count, Key const *texture_keys, Key const *sampler_keys)
void HC_Set_Shader_Textures(Key shader_key, int count, Key const texture_keys, Key const sampler_keys)

Sets the textures and samplers required by the shader at runtime. Only valid for modern custom shaders.

The two arrays must be of the same size so that there is a sampler provided for each texture. The same sampler can be used with multiple textures. Each texture should be unique and have a unique name to avoid naming collisions in the shader.

HC_Define_Shader, HC_Define_Shader_Texture, HC_Define_Shader_Sampler

Parameters

shader_key: The key of the shader, returned by Define_Shader when defining a modern custom shader.

count: The size of the following arrays.

texture_keys: The keys of the textures to make available in the custom shader. The keys are the values returned from Define_Shader_Texture.

sampler_keys: The keys of the samplers to make available in the custom shader. The keys are the values returned from Define_Shader_Sampler.