From 2e66f5345d22d8cbd5cc8be9a1db1073cb5ffd3c Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 20 Oct 2011 21:07:16 +0200 Subject: Using math functions in initializers fails on MacOSX - fixed --- .../jogl/demos/es2/shader/elektronenmultiplizierer_development.fp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/test') diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/shader/elektronenmultiplizierer_development.fp b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/shader/elektronenmultiplizierer_development.fp index 6c9e0485a..22fb65e90 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/shader/elektronenmultiplizierer_development.fp +++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/shader/elektronenmultiplizierer_development.fp @@ -40,7 +40,9 @@ vec2 oglFragCoord; //const pre-calc const float phi = 1.618; -const float _IKVNORM_ = 1.0 / sqrt(pow(phi * (1.0 + phi), 2.0) + pow(phi * phi - 1.0, 2.0) + pow(1.0 + phi, 2.0)); +// Using math functions in initializers fails on MacOSX +// const float _IKVNORM_ = 1.0 / sqrt(pow(phi * (1.0 + phi), 2.0) + pow(phi * phi - 1.0, 2.0) + pow(1.0 + phi, 2.0)); +const float _IKVNORM_ = 0.190989113930771; const float _C1_ = phi * (1.0 + phi) * _IKVNORM_; const float _C2_ = (phi * phi - 1.0) * _IKVNORM_; const float _1C_ = (1.0 + phi) * _IKVNORM_; -- cgit v1.2.3