Skip to content

Commit 59b4519

Browse files
authored
Added sqrt function for math node (contributed by williamchange)
Add sqrt function for math node
2 parents f3a2db9 + 341a4ae commit 59b4519

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

addons/material_maker/nodes/math.mmg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@
204204
{
205205
"name": "log(A, B)",
206206
"value": "log($in1($uv))/log($in2($uv))"
207+
},
208+
{
209+
"name": "sqrt(A)",
210+
"value": "sqrt($in1($uv))"
207211
}
208212
]
209213
},

material_maker/library/aliases.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"Filter/Invert": "negative",
1616
"Filter/Fill/To Random Gray": "to random grey",
1717
"Filter/Fill/From Colors": "from colours",
18-
"Filter/Math": "add,subtract,multiply,divide,log,log2,pow,abs,round,floor,ceil,trunc,fract,min,max,cos,sin,tan,sqrt,compare,greater,less,smoothstep,pingpong,sign,mod,atan2,asin,atan,acos,atan,sinh,cosh,tanh,exp,snap,radians,degrees",
18+
"Filter/Math": "add,subtract,multiply,divide,log,log2,pow,abs,round,floor,ceil,trunc,fract,min,max,cos,sin,tan,sqrt,compare,greater,less,smoothstep,pingpong,sign,mod,atan2,asin,atan,acos,atan,sinh,cosh,tanh,exp,snap,radians,degrees,sqrt",
1919
"Filter/Math/Vec3": "add,subtract,multiply,divide,log,log2,pow,abs,round,floor,ceil,trunc,fract,min,max,less,cos,sin,tan,sqrt,length,distance,dot,cross,normalize,sign,mod,snap,sinh,cosh,tanh",
2020
"Filter/Supersample": "antialias,smoothen",
2121
"Filter/Swap Channels": "shuffle,change,bind",

0 commit comments

Comments
 (0)