Panel: Mask

 

The mask is a fundamental mechanism of Texture Maker. All Functions make use of the mask to define what parts of the texture should be modified. You can choose between different shapes and procedures like ellipses, rectangles, color replacement, etc.


Only the mask covered parts were tinted blue

Increase the value Mask Smooth to blur the mask, so it becomes transparent at its borders.

Smoothing is performed with the Gaussian distribution curve.

The Edge Size value controls the width of the mask objects' edges. These edges are a gradient from full opacity (interior) to complete transparency (edges) and is independent of the selected Mask Mode.


Edge Size=0 and Edge Size=10

Supersampling increases the quality of the rendered shapes by antialiasing the edges.

The switch Boolean Mask forces the mask to feature only two levels of opacity: opaque and transparent. This is useful if you want to use the mask as Heightmap but need to keep full opacity of the function.

The Mask Modify Procedure lets you change the appearance of the mask. You can for instance round the edge gradient, add noise to the mask, make it fuzzy or invert the opacity values.

 

Mask Modes

Icon

Name

Value ("mask mode")

Description

Entire Texture

entire

Modify the entire texture

Replace Color

replace

Replace all pixels with the same color

Color Delta

color delta

Opacity dependents on the color similarity to the selected pixel

Flood Fill

fill

Fill an isolated area

Freehand Pen

pen

Freehand pen

Spot

spot

Filled arbitrary shape

Line

line

Straight line

Sprite sprite Shape defined by another image

Rectangle

rectangle

Filled rectangle

Outlined Rectangle

rectangle outline

Outlined rectangle

Gradient Rectangle

rectangle gradient

Gradient filled rectangle

Ellipse

ellipse

Filled ellipse

Outlined Ellipse

ellipse outline

Outlined ellipse

Gradient Ellipse

ellipse gradient

Ellipse-Shaped radial gradient

 

Console/Script Switches

Name

Range

Description

mask mode

(entire, pen, line, ...)

the selected shape

mask smoothing

0-16

blur strength

mask edge size

0-100

width of the edges

mask antialiasing

0/1

enable antialiasing/supersampling

mask boolean

0/1

two-level opacity mask 

mask modify 

(round, noise, ...)

mask modify procedure