Called on each frame pass on scene object that has this shaders attached to it. This callback is called regardless of whether or not the scene object is visible or in camera frame.
Called on each frame pass on scene object that has this shaders attached to it. This callback is called regardless of whether or not the scene object is visible or in camera frame.
Value parameters
ctx
Scene object context for this shader pass. Note that scene object context is associated with the scene object this shader is attached to.
inCamera
Whether or not the scene object is in camera frame. Note that this callback is called regardless of whether or not the scene object is visible or in camera frame.
objRect
Current rectangular shape of the scene object this shader is attached to in the canvas coordinate system.
Gets the origin of this asset. Typically, this should be a URL, file name or class name for in-code assets like array images, animations or system font.
Gets the origin of this asset. Typically, this should be a URL, file name or class name for in-code assets like array images, animations or system font.