Revision b24e4719
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/library/effect/FragmentEffect.java | ||
---|---|---|
26 | 26 |
public abstract class FragmentEffect extends Effect |
27 | 27 |
{ |
28 | 28 |
/** |
29 |
* 8: 4-per effect interpolated values, 4 dimensional Region.
|
|
29 |
* 12: 4-per effect interpolated values, 3 dimensional Center (+padding), 3 dimensional Region (+padding).
|
|
30 | 30 |
*/ |
31 |
public static final int NUM_UNIFORMS = 8; |
|
31 |
public static final int NUM_UNIFORMS = 12; |
|
32 |
static final int VALUES_OFFSET = 0; |
|
33 |
static final int CENTER_OFFSET = 5; |
|
34 |
static final int REGION_OFFSET = 8; |
|
32 | 35 |
private static String mGLSL = ""; |
33 | 36 |
private static int mNumEnabled = 0; |
34 | 37 |
|
Also available in: Unified diff
Make the Fragment effects truly 3D: change their 4D 'region' into a 3D 'center' (a point in 3D) and 3D 'region' (which is now a set of 3 radii defining an ellipsoid around the center)
Also corresponding changes to the applications.