diff options
author | Michael Bien <[email protected]> | 2011-02-04 01:02:06 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-02-04 01:02:06 +0100 |
commit | 18d1f903dc7cb436956e4f0c09cfb0ce0278bafa (patch) | |
tree | b6d71dd9c51cf9e5bdd5b7524a6d8df4873c5881 /src/com/jogamp/opencl/demos/julia3d/UserSceneController.java | |
parent | dbe93d1e40a7bc9fbea7c5be3d59bf84e8a20ecb (diff) |
- fixed bug in julia3d demo when epsilon is 0
- better device choice
- cleanup
Diffstat (limited to 'src/com/jogamp/opencl/demos/julia3d/UserSceneController.java')
-rw-r--r-- | src/com/jogamp/opencl/demos/julia3d/UserSceneController.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/demos/julia3d/UserSceneController.java b/src/com/jogamp/opencl/demos/julia3d/UserSceneController.java index fda54be..17b8956 100644 --- a/src/com/jogamp/opencl/demos/julia3d/UserSceneController.java +++ b/src/com/jogamp/opencl/demos/julia3d/UserSceneController.java @@ -135,7 +135,7 @@ public class UserSceneController { model.setEnableShadow(model.getEnableShadow()==0 ? 1 : 0); break; case '1': - model.setEpsilon(model.getEpsilon() * 0.75f); + model.setEpsilon(max(0.0001f, model.getEpsilon() * 0.75f)); break; case '2': model.setEpsilon(model.getEpsilon() * 1.f / 0.75f); |