Project

General

Profile

« Previous | Next » 

Revision 15aa7d94

Added by Leszek Koltunski almost 7 years ago

Progress with support for Effect classes.

View differences:

src/main/java/org/distorted/library/effect/VertexEffect.java
19 19

  
20 20
package org.distorted.library.effect;
21 21

  
22
import org.distorted.library.type.Data3D;
23
import org.distorted.library.type.Data4D;
24 22
import org.distorted.library.type.Dynamic;
23
import org.distorted.library.type.Dynamic3D;
24
import org.distorted.library.type.Dynamic4D;
25 25
import org.distorted.library.type.Static;
26
import org.distorted.library.type.Static3D;
27
import org.distorted.library.type.Static4D;
26 28

  
27 29
///////////////////////////////////////////////////////////////////////////////////////////////////
28 30
// VERTEX EFFECTS
......
30 32

  
31 33
public abstract class VertexEffect extends Effect
32 34
  {
35
  public static final int NUM_UNIFORMS = 12;
36

  
33 37
  public static final int DISTORT    =0;
34 38
  public static final int DEFORM     =1;
35 39
  public static final int SINK       =2;
......
43 47

  
44 48
  Dynamic mDynamic0;
45 49
  Static mStatic0;
46
  Data3D mCenter;
47
  Data4D mRegion;
50
  Dynamic3D mDynamicCenter;
51
  Static3D  mStaticCenter;
52
  Dynamic4D mDynamicRegion;
53
  Static4D  mStaticRegion;
48 54

  
49 55
  private final static float[] mUnity= new float[MAX_UNITY_DIM*NUM_EFFECTS];
50 56
  private final static int[]   mUnityDim = new int[NUM_EFFECTS];

Also available in: Unified diff