From f844d7864241483acfd9733f0eb60965244c7f4a Mon Sep 17 00:00:00 2001 From: Juan Carlos Ponce Campuzano <37394697+jcponce@users.noreply.github.com> Date: Sat, 24 Aug 2024 17:31:56 +1000 Subject: [PATCH] Update vertex.glsl --- threejs/galaxy/shaders/galaxy/vertex.glsl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/threejs/galaxy/shaders/galaxy/vertex.glsl b/threejs/galaxy/shaders/galaxy/vertex.glsl index b16f0bff..9d07c033 100644 --- a/threejs/galaxy/shaders/galaxy/vertex.glsl +++ b/threejs/galaxy/shaders/galaxy/vertex.glsl @@ -8,9 +8,9 @@ attribute vec3 aRandomness; varying vec3 vColor; float myPoly(float u) { - float v = + 0.00198 * pow(u, 3.0) - - 0.13105 * pow(u, 2.0) - + 3.03774 * pow(u, 1.0); + float v = + 0.0019462767 * pow(u, 3.0) + - 0.1296830403 * pow(u, 2.0) + + 3.0256530414 * pow(u, 1.0); return v; }