1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-09-19 11:56:01 +08:00
Files
Godot-Shader-Lib/documentation/Nodes/Procedural/Shapes/Ellipse.md
2024-07-21 16:39:45 +05:30

1.1 KiB

Ellipse node

Generates an ellipse shape based on input UV at the size specified by inputs width and height. The generated shape can be offset or tiled by connecting a TilingAndOffset node. Note that in order to preserve the ability to offset the shape within the UV space the shape will not automatically repeat if tiled. To achieve a repeating dot effect first connect your TilingAndOffset output through a Fract node.


Inputs

Name Type Binding Description
uv vec2 UV Input UV value
width float none Ellipse width
height float none Ellipse height

Outputs

Name Type Binding Description
output float None Output ellipse value

ShaderInc location
res://addons/ShaderLib/Procedural/Procedural.gdshaderinc

Method signature
float ellipse_shape(vec2 uv, float width, float height)

Parameters

Name Type Description
uv vec2 Input UV value
width float Ellipse width
height float Ellipse height