Merge pull request #423 from lavamitt/lavanya/fix-shaping-comments

Fix misleading comment in shapes example.
This commit is contained in:
Patricio Gonzalez Vivo 2025-03-04 08:55:17 -08:00 committed by GitHub
commit b594c75cd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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
float r = TWO_PI/float(N);
// Shaping function that modulate the distance