mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Comments from sdf3d_plane.mmg.
This commit is contained in:
parent
55c23bc6b2
commit
95eb126b8f
@ -117,6 +117,24 @@ const Commons = preload("res://addons/mat_maker_gd/nodes/common/commons.gd")
|
||||
#length, float, min: 0, max: 1, default:0.5, step:0.01
|
||||
#radius, float, min: 0, max: 1, default:0.2, step:0.01
|
||||
|
||||
#----------------------
|
||||
#sdf3d_plane.mmg
|
||||
#Generates a plane that can be used to cut other shapes
|
||||
|
||||
#Outputs:
|
||||
|
||||
#X: $axis = x
|
||||
#Y: $axis = y
|
||||
#Z: $axis = z
|
||||
|
||||
#Output (sdf3dc) - Shows the plane
|
||||
#$uv.$axis
|
||||
|
||||
#Inputs:
|
||||
#axis, enum, default: 1, values: X, Y, Z
|
||||
|
||||
|
||||
|
||||
static func raymarch(uv : Vector2) -> Color:
|
||||
var d : Vector2 = sdf3d_raymarch(uv);
|
||||
|
||||
|
@ -1,56 +0,0 @@
|
||||
{
|
||||
"name": "sdf3d_plane",
|
||||
"node_position": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"parameters": {
|
||||
"axis": 0
|
||||
},
|
||||
"seed": 0,
|
||||
"seed_locked": false,
|
||||
"shader_model": {
|
||||
"code": "",
|
||||
"global": "",
|
||||
"inputs": [
|
||||
|
||||
],
|
||||
"instance": "",
|
||||
"longdesc": "Generates a plane that can be used to cut other shapes",
|
||||
"name": "Plane",
|
||||
"outputs": [
|
||||
{
|
||||
"longdesc": "Shows the plane",
|
||||
"sdf3d": "$uv.$axis",
|
||||
"shortdesc": "Output",
|
||||
"type": "sdf3d"
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"default": 2,
|
||||
"label": "",
|
||||
"longdesc": "The axis of the plane",
|
||||
"name": "axis",
|
||||
"shortdesc": "Axis",
|
||||
"type": "enum",
|
||||
"values": [
|
||||
{
|
||||
"name": "X",
|
||||
"value": "x"
|
||||
},
|
||||
{
|
||||
"name": "Y",
|
||||
"value": "y"
|
||||
},
|
||||
{
|
||||
"name": "Z",
|
||||
"value": "z"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"shortdesc": "Plane"
|
||||
},
|
||||
"type": "shader"
|
||||
}
|
Loading…
Reference in New Issue
Block a user