From f32376bc4b0ddc06fed49fc1c17854ca01297410 Mon Sep 17 00:00:00 2001 From: emilybrown1 Date: Tue, 31 Aug 2021 10:31:32 +0100 Subject: [PATCH] Changed Out's type to float --- com.unity.shadergraph/Documentation~/Ellipse-Node.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.unity.shadergraph/Documentation~/Ellipse-Node.md b/com.unity.shadergraph/Documentation~/Ellipse-Node.md index 5ccf3b56feb..3df9d991db4 100644 --- a/com.unity.shadergraph/Documentation~/Ellipse-Node.md +++ b/com.unity.shadergraph/Documentation~/Ellipse-Node.md @@ -20,7 +20,7 @@ NOTE: This [Node](Node.md) can only be used in the **Fragment** [Shader Stage](S The following example code represents one possible outcome of this node. ``` -void Unity_Ellipse_float(float2 UV, float Width, float Height, out float4 Out) +void Unity_Ellipse_float(float2 UV, float Width, float Height, out float Out) { float d = length((UV * 2 - 1) / float2(Width, Height)); Out = saturate((1 - d) / fwidth(d));