Skip to content

Add normals to DrawSphereEx #4926

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2025

Conversation

karl-zylinski
Copy link
Contributor

@karl-zylinski karl-zylinski commented May 6, 2025

DrawCube has normals, DrawSphere doesn't. So I added it to DrawSphere.

Note that DrawCylinder, DrawCapsule, DrawTriangle3D and DrawCircle3D still doesn't have normals. But drawing a sphere is common for testing lighting, so I thought it would be nice. It's cheap to do for a sphere since the non-scaled vertex position is also the vertex normal. It may not be as cheap for those other drawing functions.

@raysan5 raysan5 merged commit 1402e83 into raysan5:master May 7, 2025
15 checks passed
@raysan5
Copy link
Owner

raysan5 commented May 7, 2025

@karl-zylinski thanks for the addition!

@karl-zylinski karl-zylinski deleted the draw-sphere-normals branch May 7, 2025 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants