Extended from BaseObject StaticObject¶
This class is used to create a basic object, without physics or animations
Properties¶
Vector2 ChromaticAberrationPoint¶
This is the point which is being used as reference for the chromatic aberration
table ChromaticAberration¶
The instances which makes the chromatic aberration effect
{ }
Shader Shader¶
Is the shader of the object
number ChromaticAberrationIntensity¶
number ChromaticAberrationDistance¶
boolean ChromaticAberrationConnection¶
Methods¶
void SetScene(scene: Scene
)¶
Sets the scene for this object
void SetShader(shader: Shader
)¶
Sets the shader for this object
void Load(url: string
)¶
Loads an image for the current object and is set as the instance image
void SetChromaticAberration(Intensity: number, Distance: number, Point: Vector2
)¶
Sets chromatic aberration for the image using a center as reference, by default the center is the middle of the screen, to disable the chromatic aberration send 0 as first parameter
Events¶
There is no events for this class