AnimObject_SetEffect



AnimObject_SetEffect pAnimObj, EffectID

Description

Applies an effect to the specified AnimObject. The effect must be specifically written for compatibility with the jGpuSkin plugin, and the plugin requires the effect's vertex shader to be tailored to match each AnimObject's boneweight requirements. For best performance it is recommended that the shader's matrix palette arrays be sized to match the AnimObject's requirements. Effects must be applied to AnimObjects using this command rather than dbpro's set object effect so the plugin can obtain shader constant handles.

Parameters

pAnimObjINTEGERThe AnimObject to which the effect is being applied
EffectIDINTEGERThe ID of the effect which is being applied.


AnimObject Commands
jGpuSkin Command Index
jGpuSkin Main