Method
Allows a custom piece of HLSL code to be written to produce a distance value from which a procedural shape will be created. For best results with this node you should have a working knowledge of the HLSL shading language, and signed distance fields.
Example |
|
Example Nodegraph |
|
Code |
|
Transform
Name |
Description |
Position X |
Move its position along the x-axis in local space. |
Position Y |
Move its position along the y-axis in local space. |
Position Z |
Move its position along the z-axis in local space. |
Rotation Heading |
Rotate the object about the x-axis. |
Rotation Pitch |
Rotate the object about the y-axis. |
Rotation Bank |
Rotate the object about the z-axis. |
Scale X |
Scale along the x-axis. |
Scale Y |
Scale along the y-axis. |
Scale Z |
Scale along the z-axis. |
Inherit Transform Channels
Toggle which transform channels should be inherited. By default, all are on.
Attributes
Name |
Description |
Code |
Type your code here |
Param 0 |
variable that can be used in the code |
Param 1 |
variable that can be used in the code |
Param 2 |
variable that can be used in the code |
CSG Mode |
These options change how a this node combines with the rest of the procedural system. To find out more, see CSG Operation.
- Replace, Replaces the previous procedural system.
- Union, Adds the new procedural to the old procedural system.
- Intersection, Interesects the new procedural with the old procedural.
- Subtract, Subtracts the new procedural from the previous procedural system.
- Blend, Blends between both procedurals – driven by the CSG Blend Weight.
- Union Blend, A combination of Union and Blend – driven by the CSG Blend Weight.
- Smooth Union, The new procedural is added to the old, and smoothing is applied to the outcome. Driven by the CSG Blend Weight.
- Smooth Subtract, The new procedural is subtracted from the old, and smoothing is applied to the outcome. Driven by the CSG Blend Weight.
- Offset, Adds one procedural ontop of the other another.
- Custom Code, allows you to enter your own expression code.
|
CSG Blend Weight |
How much the new procedural blends with the old procedurals, depending on the CSG Blend Mode. |
Affect Colour |
Affect the colour of the generated procedural system. only functions with “Generate Colours” enabled in some Procedural Render nodes. |
Always Enabled |
When enabled, this node will run regardless of time bar enable/disable. Due to how Notch handles shader generation with procedurals, with this enabled the node runs more efficiently. |
Material Colour |
Modify the colour for the procedural material. |
Custom CSG Code |
Type your Custom code here, using the HLSL language. Read more on Editable Code. |
Inputs
Name |
Description |
Typical Node Input |
Transform Modifier |
Links all transform properties to the input node. |
Null |
Target Node |
Always faces the x-axis towards the inputs anchor point. |
Null |
Local Transform Override |
Override the transformation values of the node, relative to its parent. |
Null |
Outputs
There are no outputs from this node.