This shader creates a gradually shaded border by dimming the background color of the pixels closer to the border of the frame or object.
Value parameters
autoStart
Whether to start shader right away. Default value is false.
colorMixPerStep
Float value in [0,1] range indicating the color change per each step in the border.
compensateWidth
Whether or not to compensate for non-square form of the character "pixel". If true then for each horizontal line there will be 2 vertical lines giving the visual effect of the both horizontal and vertical border lines having the same width.
entireFrame
Whether apply to the entire camera frame or just the object this shader is attached to.
width
How many lines (vertical and horizontal) the shaded border width will be.
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.
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.