Revision dd89c7f4
Added by Leszek Koltunski about 5 years ago
src/main/java/org/distorted/library/effect/FragmentEffect.java | ||
---|---|---|
19 | 19 |
|
20 | 20 |
package org.distorted.library.effect; |
21 | 21 |
|
22 |
import org.distorted.library.type.Static3D; |
|
23 |
|
|
22 | 24 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
23 | 25 |
/** |
24 | 26 |
* Abstract class that represents an Effect that works by injecting certain code into the main Fragment shader. |
... | ... | |
35 | 37 |
private static String mGLSL = ""; |
36 | 38 |
private static int mNumEnabled = 0; |
37 | 39 |
|
40 |
final static Static3D MAX_REGION = new Static3D(1000000,1000000,1000000); |
|
41 |
|
|
38 | 42 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
39 | 43 |
|
40 | 44 |
FragmentEffect(EffectName name) |
Also available in: Unified diff
Bugfix: default, MAX region cannot be of Float.MAX_VALUE radius - then in the shader we can have an overflow. Make it 1000000 in radius.