From 45b66fbcf8d4162f21204df495a04e00d943f6b5 Mon Sep 17 00:00:00 2001 From: Lavanya Mittal Date: Thu, 14 Nov 2024 10:19:25 -0500 Subject: [PATCH 1/2] fix comment --- 07/shapes.frag | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/07/shapes.frag b/07/shapes.frag index 6d7f5d8..7f409bd 100644 --- a/07/shapes.frag +++ b/07/shapes.frag @@ -24,8 +24,10 @@ void main(){ // Number of sides of your shape int N = 3; - // Angle and radius from the current pixel + // Angle from the current pixel float a = atan(st.x,st.y)+PI; + + // Angular spacing between vertices of shape (in radians) float r = TWO_PI/float(N); // Shaping function that modulate the distance From 65bdf90a0082e42b399d207084059432a17e4dca Mon Sep 17 00:00:00 2001 From: Lavanya Mittal Date: Thu, 14 Nov 2024 10:32:13 -0500 Subject: [PATCH 2/2] remove in radians since its obvious --- 07/shapes.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/07/shapes.frag b/07/shapes.frag index 7f409bd..e68744b 100644 --- a/07/shapes.frag +++ b/07/shapes.frag @@ -27,7 +27,7 @@ void main(){ // Angle from the current pixel float a = atan(st.x,st.y)+PI; - // Angular spacing between vertices of shape (in radians) + // Angular spacing between vertices of shape float r = TWO_PI/float(N); // Shaping function that modulate the distance