You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While experimenting with the 3D API and shaders, I discovered that my lighting only works with DrawCube and DrawPlane. Doing a Ctrl+F in rmodels.c confirms that these are the only only functions in that file that call rlNormal3f. It appears that other 3D primitives will reuse the last normal output by a previous draw call. I believe the following functions need to be modified to output vertex normals:
DrawCircle3D
DrawTriangle3D
DrawTriangleStrip3D
DrawSphereEx
DrawCylinder
DrawCylinderEx
DrawCapsule
The text was updated successfully, but these errors were encountered:
While experimenting with the 3D API and shaders, I discovered that my lighting only works with
DrawCube
andDrawPlane
. Doing a Ctrl+F inrmodels.c
confirms that these are the only only functions in that file that callrlNormal3f
. It appears that other 3D primitives will reuse the last normal output by a previous draw call. I believe the following functions need to be modified to output vertex normals:DrawCircle3D
DrawTriangle3D
DrawTriangleStrip3D
DrawSphereEx
DrawCylinder
DrawCylinderEx
DrawCapsule
The text was updated successfully, but these errors were encountered: