From 7b570bdfdda663384a3cb49af28412df37e2d036 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 16 Jan 2025 19:47:06 +0100 Subject: [PATCH] Update models_point_rendering.c --- examples/models/models_point_rendering.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/models/models_point_rendering.c b/examples/models/models_point_rendering.c index d33cbdda..f4f095c1 100644 --- a/examples/models/models_point_rendering.c +++ b/examples/models/models_point_rendering.c @@ -163,9 +163,9 @@ static Mesh GenMeshPoints(int numPoints) float phi = (2.0f*PI*rand())/RAND_MAX; float r = (10.0f*rand())/RAND_MAX; - mesh.vertices[i*3 + 0] = r*sin(theta)*cos(phi); - mesh.vertices[i*3 + 1] = r*sin(theta)*sin(phi); - mesh.vertices[i*3 + 2] = r*cos(theta); + mesh.vertices[i*3 + 0] = r*sinf(theta)*cosf(phi); + mesh.vertices[i*3 + 1] = r*sinf(theta)*sinf(phi); + mesh.vertices[i*3 + 2] = r*cosf(theta); Color color = ColorFromHSV(r*360.0f, 1.0f, 1.0f);