Revision 310e14fb
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/library/effect/MatrixEffect.java | ||
---|---|---|
22 | 22 |
import org.distorted.library.type.*; |
23 | 23 |
|
24 | 24 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
25 |
// MATRIX EFFECTS. |
|
26 |
// 7 Uniforms: 4 per-effect interpolated values + 3 dimensional center. |
|
25 | 27 |
|
26 | 28 |
public abstract class MatrixEffect extends Effect |
27 | 29 |
{ |
... | ... | |
35 | 37 |
static final int MAX = 5; |
36 | 38 |
private static final int MAX_UNITY_DIM = 3; |
37 | 39 |
|
38 |
Dynamic mDynamic0; |
|
39 |
Static mStatic0, mStatic1; |
|
40 |
Dynamic mDynamic0,mDynamic1;
|
|
41 |
Static mStatic0 , mStatic1;
|
|
40 | 42 |
Data3D mCenter; |
41 | 43 |
|
42 | 44 |
private final static float[] mUnity= new float[MAX_UNITY_DIM*NUM_EFFECTS]; |
... | ... | |
58 | 60 |
|
59 | 61 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
60 | 62 |
|
61 |
static boolean isUnity(int name, float[] buffer, int index) |
|
63 |
public static boolean isUnity(int name, float[] buffer, int index)
|
|
62 | 64 |
{ |
63 | 65 |
switch(mUnityDim[name]) |
64 | 66 |
{ |
Also available in: Unified diff
Some progress with Effect classes.
Big mess - nothing compiles now; classes moved around.