Project

General

Profile

« Previous | Next » 

Revision 24804c15

Added by Leszek Koltunski over 3 years ago

Turn the vName, vEffAnd and vEffEqu integer array uniforms into a one ivec4.
The point: ivec4s are always packed tightly in UBOs (which is going to be the next step)

View differences:

src/main/java/org/distorted/library/effect/VertexEffect.java
34 34
   */
35 35
  public static final int NUM_FLOAT_UNIFORMS = 12;
36 36
  /**
37
   * 3: name, AND association, equ Association
37
   * 4: name, AND association, reserved, EQU Association
38 38
   */
39
  public static final int NUM_INT_UNIFORMS = 3;
39
  public static final int NUM_INT_UNIFORMS = 4;
40 40

  
41 41
  static final int VALUES_OFFSET = 0;
42 42
  static final int CENTER_OFFSET = 5;
......
63 63
    {
64 64
    return
65 65

  
66
        "if( vName[i]=="+effect+" )\n" +
66
        "if( vProperties[i].x =="+effect+" )\n" +
67 67
          "{\n" +
68 68
           code +"\n" +
69 69
          "}\n" +

Also available in: Unified diff