patriciogonzalezvivo / thebookofshaders

Step-by-step guide through the abstract and complex universe of Fragment Shaders.
http://TheBookOfShaders.com
Other
6.08k stars 690 forks source link

Fix misleading comment in shapes example. #423

Open lavamitt opened 1 week ago

lavamitt commented 1 week ago

Labeling 'r' as radius is misleading when it is actually the number of radians representing some segment of the circle for a triangle edge.

Feel free to adjust/rewrite the new comments!

Generally, I think this could afford to have even more comments / more aptly named variables, but this is at least removing an incorrect statement.

Thanks!