mirror of
https://github.com/Relintai/mat_maker_gd.git
synced 2025-04-30 10:57:56 +02:00
Removed comment, as that code was replaced.
This commit is contained in:
parent
7c5c4d39be
commit
d044bd4ee5
@ -289,9 +289,6 @@ func bricks_sb(uv : Vector2, count : Vector2, repeat : float, offset : float) ->
|
|||||||
|
|
||||||
return Color(corner.x / c.x, corner.y / c.y, (corner.x + size.x) / c.x, (corner.y + size.y) / c.y)
|
return Color(corner.x / c.x, corner.y / c.y, (corner.x + size.x) / c.x, (corner.y + size.y) / c.y)
|
||||||
|
|
||||||
|
|
||||||
#from https://www.geeksforgeeks.org/modulus-two-float-double-numbers/
|
|
||||||
#there is probably a better way of doing this
|
|
||||||
func modf(x : float, y : float) -> float:
|
func modf(x : float, y : float) -> float:
|
||||||
return x - y * floor(x / y)
|
return x - y * floor(x / y)
|
||||||
|
|
||||||
|
@ -130,9 +130,6 @@ func shape_rays(uv : Vector2, sides : float, size : float, edge : float) -> floa
|
|||||||
|
|
||||||
return clamp(min((size - angle) / edge, angle / edge), 0.0, 1.0);
|
return clamp(min((size - angle) / edge, angle / edge), 0.0, 1.0);
|
||||||
|
|
||||||
|
|
||||||
#from https://www.geeksforgeeks.org/modulus-two-float-double-numbers/
|
|
||||||
#there is probably a better way of doing this
|
|
||||||
func modf(x : float, y : float) -> float:
|
func modf(x : float, y : float) -> float:
|
||||||
return x - y * floor(x / y)
|
return x - y * floor(x / y)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user