Effect Methods |
The Effect type exposes the following members.
Name | Description | |
---|---|---|
ApplyMaterial | Applies the material and object's world matrix to this effect. | |
ApplyPerFrameSettings | Sets per frame settings for this effect (this sets camera, lights and other per frame settings). | |
PreloadShaders | PreloadShaders can be called to load the shaders in advance before they are used. Calling this method increases the startup time, but when the 3D object needs to be shown, it is shown faster because all the shaders have already been created. | |
ResetLastUsedFrameNumber | ResetLastUsedFrameNumber sets LastUsedFrameNumber to -1. This is used to prevent calling ApplyPerFrameSettings when this effect is used multiple times with different lights on one frame. |