effect_load(MATERIAL* mtl,STRING* name)

Loads an effect file in Microsoft .fx format into the given material. This instruction can be used to edit effects and shaders in real time and observe the result immediately in the game.

Parameters:

mtl Material pointer
name Filename of the .fx file, or NULL for reloading the current material effect.

Edition:

 C   P 

Example:

effect_load(mtl_bump,"specularbump.fx");

See also:

material, shaders, shader predefined variables, effect_cpy