Creating nodes using Texture3D and CurveTexture
In this recipe, we will add a CurveTexture node to the IntComNodes.tres
visual shader file. We will use the CurveTexture node to control how much alpha we have on MeshInstance3D.
Getting ready
For this recipe, we will stay in VSContextMenu
from the last recipe. If you’d like to keep the recipes separate, then continue with the rest of the Getting ready section. Otherwise, use the existing IntComNodes.tres
visual shader. Right-click on the IntComNodes
visual shader file and select Duplicate from the drop-down list.
In the popup that appears, change the name to CurveTexture.tres
and left-click on the Duplicate button. In the Inspector, in the Material section, click on the counterclockwise circle to the right of Shader. Click on <empty> to the right of Shader and select Load from the drop-down menu. Select CurveTexture.tres
, then click the Open button.
How to do it…
Let’s add a CurveTexture node...