summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/demos/julia3d/UserSceneController.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/jogamp/opencl/demos/julia3d/UserSceneController.java')
-rw-r--r--src/com/jogamp/opencl/demos/julia3d/UserSceneController.java2
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);