diff options
author | Michael Bien <[email protected]> | 2010-08-12 23:30:05 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-08-12 23:30:05 +0200 |
commit | ca34c83b7ca95bb5beadc8f2350db4585d7c8f9a (patch) | |
tree | 93e75e5348ea527383351e3391cba0b2c86e94c7 /src/com/jogamp/opencl/demos/julia3d/mandelbrot_kernel.cl | |
parent | 38641e01d3540e279ee91c9c6cfbc28414a6ed8d (diff) |
removed static function qualifiers from julia set kernels since AMD SDK 2.2 compiler doesn't like them.
Diffstat (limited to 'src/com/jogamp/opencl/demos/julia3d/mandelbrot_kernel.cl')
-rw-r--r-- | src/com/jogamp/opencl/demos/julia3d/mandelbrot_kernel.cl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/jogamp/opencl/demos/julia3d/mandelbrot_kernel.cl b/src/com/jogamp/opencl/demos/julia3d/mandelbrot_kernel.cl index d5acd02..ffbbbca 100644 --- a/src/com/jogamp/opencl/demos/julia3d/mandelbrot_kernel.cl +++ b/src/com/jogamp/opencl/demos/julia3d/mandelbrot_kernel.cl @@ -52,7 +52,7 @@ typedef struct { // Scalar derivative approach by Enforcer: // http://www.fractalforums.com/mandelbulb-implementation/realtime-renderingoptimisations/ -static float IterateIntersect(const float4 z0, const float4 c0, const uint maxIterations) { +float IterateIntersect(const float4 z0, const float4 c0, const uint maxIterations) { float4 z = z0; float4 c = c0; @@ -80,7 +80,7 @@ static float IterateIntersect(const float4 z0, const float4 c0, const uint maxIt return 0.5f * log(r) * r / dr; } -static float IntersectBulb(const float4 eyeRayOrig, const float4 eyeRayDir, +float IntersectBulb(const float4 eyeRayOrig, const float4 eyeRayDir, const float4 c, const uint maxIterations, const float epsilon, const float maxDist, float4 *hitPoint, uint *steps) { float dist; @@ -154,7 +154,7 @@ int IntersectBoundingSphere(const float4 eyeRayOrig, const float4 eyeRayDir, } } -static float4 NormEstimate(const float4 p, const float4 c, +float4 NormEstimate(const float4 p, const float4 c, const float delta, const uint maxIterations) { const float4 qP = p; const float4 gx1 = qP - (float4)(delta, 0.f, 0.f, 0.f); @@ -176,7 +176,7 @@ static float4 NormEstimate(const float4 p, const float4 c, return N; } -static float4 Phong(const float4 light, const float4 eye, const float4 pt, +float4 Phong(const float4 light, const float4 eye, const float4 pt, const float4 N, const float4 diffuse) { const float4 ambient = (float4) (0.05f, 0.05f, 0.05f, 0.f); float4 L = normalize(light - pt); |