Render Texture
Description
The Render Texture behavior creates a blank canvas that is used to draw on with the Draw behavior. You can also apply an effect on the render texture that will change the appearance of your drawing. Multiple effects can be applied by stacking multiple render textures.
Properties
Triggers Immediately
|
Render Texture |
Optionally select another render texture behavior, this can be used to stack effects. |
|
Size Units |
The width and height can be represented in meters or pixels. Note that when using pixels, the actual size of the texture can vary between devices due to varying scale factors. This can be remedied by using the Scale behaviors to set the graphic to a specific size. |
| Width |
The width of the render texture. |
| Height |
The height of the render texture. |
|
Background Color |
The background color of the render texture. |
|
Clear on trigger |
When the render texture behaviour gets triggered, should it clear the render texture? e.g clear out all the drawn behaviors. |
|
Bloom (Blur Radius)
|
Number of pixels blur will extend to. Uses values in the range [0..6]. |
|
Bloom (Intensity)
|
Values in the range [0.0..1.0] defines the contrast of the glowing image. A higher value will make the glow more prevalent. |
|
Bloom (Luminance Threshold)
|
Values in the range [0.0..1.0] defines which part of the image should be glown via a luminance factor (brightness). A value of 0.0 will apply bloom to the whole image, a value of 1.0 will only apply bloom to the brightest part of the image. |
|
Blur (Blur Radius)
|
Number of pixels blur will extend to. Uses values in the range [0..6]. |
|
Brightness (Brightness)
|
Value in the range of [-1..1]. A value of -1 reduces the affected color to 0 (black), 0 results in no change, 1 increases the affected color to 1 (white). |
|
Colour Channel Offset (Red Offset) |
The red color channel offset specified by its x, y values |
|
Colour Channel Offset (Green Offset) |
The green color channel offset specified by its x, y values |
|
Colour Channel Offset (Blue Offset) |
The blue color channel offset specified by its x, y values |
|
Contrast (Contrast) |
This value is in the range [-1..1], and the mapping of this value to the color scale factor is: pow(4.0, contrast). This means that an adjustment value of -1 scales the affected color by 0.25, 0 results in no change, and 1 scales the affected color by 4. |
|
Hue (Hue)
|
The adjustment value that is used to shift the hue of the affected pixel colors. This value is in the range [-180..180] and represents the angle of rotation of the color values in the HSV color space. In HSV space, the color red is at 0 degrees, green is at 120 degrees, and blue is at 240 degrees. |
|
Invert
|
Creates a color inversion (negative) effect. |
|
Pixelate (Block size)
|
This value is specified in points and is in the range [1..inf]. A value of 1 results in no change to the affected pixels and larger values result in larger output pixel blocks. |
|
Saturation (Saturation)
|
The saturation adjustment value which is in the range [-1..1]. -1 completely desaturates all affected pixels resulting in a grayscale image, 0 results in no change, 1 results in an increase in saturation by 100%. |
Outputs
This behavior has no output fields.
Example
Create drawing game by using the Draw behavior to draw into a Render Texture behavior and set the graphic of a graphic object with a Set Graphic behavior.

