Project

General

Profile

« Previous | Next » 

Revision 6bb59aad

Added by Leszek Koltunski almost 7 years ago

Progress with support for Effect classes.

View differences:

src/main/java/org/distorted/library/effect/PostprocessEffect.java
30 30
  {
31 31
  public static final int NUM_UNIFORMS = 5;
32 32

  
33
  public static final int BLUR       =0;
34
  public static final int GLOW       =1;
35
  public static final int NUM_EFFECTS=2;
33
  public static final int BLUR       = MAX_EFFECTS*POSTPROCESS    ;
34
  public static final int GLOW       = MAX_EFFECTS*POSTPROCESS + 1;
35
  public static final int NUM_EFFECTS= 2;
36 36

  
37 37
  static final int MAX = 5;
38 38
  private static final int MAX_UNITY_DIM = 1;
......
45 45

  
46 46
///////////////////////////////////////////////////////////////////////////////////////////////////
47 47

  
48
  public PostprocessEffect(int name, float[] unity, int dimension, boolean center, boolean region)
48
  public PostprocessEffect(int name, float[] unity, int dimension, boolean center, boolean region, final String str)
49 49
    {
50
    super(POSTPROCESS,name,dimension,center,region);
50
    super(POSTPROCESS,name,dimension,center,region,str);
51 51

  
52 52
    for(int i=0; i<unity.length; i++)
53 53
      {

Also available in: Unified diff