technique
Name of the technique from the effect file to be used in this material. The same effect file can contain several techniques for different materials.
Type:
STRING* or char*
Remarks:
- This parameter must be set either in the MATERIAL definition or before the effect is loaded the first time. When changing it at runtime, the effect must be loaded again with effect_load.
- If the parameter is not set, the first valid technique is used.
Example:
MATERIAL* mtl_blur =
{
effect = "shadercollection.fx"; // external effect file with many shaders
technique = "blur";
}
See also:
Material, Effect, effect_load ► latest version online