Tesla Graphics Engine Documentation (January 2012)
IMaterialLogic Interface
TeslaTesla.GraphicsIMaterialLogic
Material logic can be thought of as "pre-shaders". If a user needs to operate or retrieve a value that the engine does not define every frame, or per-material, that can be done in a material logic. Logic is executed before the material applies itself during rendering.
Declaration Syntax
C#
public interface IMaterialLogic : ISavable
Members
All Members Methods Properties



Icon Member Description
Clone()()()()
Clones the logic.

Execute(Material, IRenderer, IRenderable)
Execute the logic for the given material and renderable (usually a Mesh).

IsEnabled
Gets or sets if this logic is enabled or not.

Name
Gets the logic name which its identified by.

Read(ISavableReader)
Deserializes the object and populates it from the input.
(Inherited from ISavable.)
Write(ISavableWriter)
Serializes the object and writes it to the output.
(Inherited from ISavable.)

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)