Border shade shader.
This shader creates a gradually shaded border by dimming the background color of the pixels closer to the border of the frame or object.
Whether to start shader right away. Default value is
Float value in
[0,1]range indicating the color change per each step in the border.
Whether or not to compensate for non-square form of the character "pixel". If
truethen 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.
Whether apply to the entire camera frame or just the object this shader is attached to.
How many lines (vertical and horizontal) the shaded border width will be.
- See also
See CPBirdGame class for the example of using this shader.
See CPShaderExample class for the example of using shaders.
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.