effect_cpy(MATERIAL* to,MATERIAL* from)

Copies an effect from one material to another. For using the same effect with a lot of different materials, or for fast switching effects in different views.

Parameters:

to material to be copied into
from material to be copied from

Returns:

Pointer to the compiled LPD3DXEFFECT. A8.04

Speed:

Fast

Edition:

 C   P 

Example:

effect_cpy(mtl_bump_model,mtl_bump_master);

See also:

material, shaders, shader predefined variables, effect_load ► latest version online