Store as Attribute
Masks in Geometry and Scatter sections can be stored and used in other sections. So you can mask out a section for mountains in Geometry, store the mask(s) and use them in the Scatter and Shader sections with an Attribute Mask
to automatically mask relevant assets to that same section. And anytime you change the mask in the Geometry the other sections will update automatically!
Masks stored in Geometry can be used in Scatter and Shader sections.
Masks stored in Scatter can only be used in Shader.
You will find two Store as Attribute toggles in the mask section. One above the mask layer list and one below. The one above will store all masks in this layer while the one below will only store the active mask.
To store mask(s) enable the Store as Attribute toggle as seen in the image above. Once enabled you'll have the option to name or rename the attribute, decide how this mask is combined with previous masks assigned to the same attribute by name, and if you would like to clamp the attribute between the values of 0 and 1.
Where you use an attribute matters. An Attribute Mask in shader set to the same attribute as in Scatter may have different results depending upon what other masks attribute to it and come afterwards.
Adding to Existing Attributes
Once you have stored an attribute you can actually add the output of other masks to it by enabling Store as Attribute, choosing the existing attribute in the Attribute Name dropdown instead of inputing a new name, and then changing the Combine Operation to something other than Overwrite.
Settings
Attribute Name
This is the name of the attribute. This is what you will search for in the attribute mask to reuse it.
Show Data
Clamp
Ensure your mask values are from 0-1 only. This is not always desired and therefore not on by default though most masks themselves keep their values between 0-1 only.
Mask Description
This input is for helping to provide yourself details later on what this mask is doing in the overall scheme of the attribute.
Combine Operation
Overwrite
Overwrite any other masks prior to this mask.
Multiply
Multiply this mask with the previous masks assigned to this attribute.
Add
Add this mask to the previous masks assigned to this attribute.
Subtract
Subtract this mask from the previous masks assigned to this attribute.
Min
Choose the smaller of the values between this mask and prior assigned masks.
Max
Choose the larger of the values between this mask and prior assigned masks.
Sources
Clicking this will open up a popup of all the masks that are combined to form the mask. Here you can edit any of the masks attributing to the attribute's result.
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
CODE BLOCK
Block quote
Ordered list
- Item 1
- Item 2
- Item 3
Unordered list
- Item A
- Item B
- Item C
Bold text
Emphasis
Superscript
Subscript