Project

General

Profile

« Previous | Next » 

Revision de77a6c5

Added by Leszek Koltunski over 3 years ago

Introduce another Uniform Block Object. Now we can have much more vertex and fragment effects - up their default number to 100.

View differences:

src/main/java/org/distorted/library/mesh/MeshBase.java
29 29
import org.distorted.library.main.InternalBuffer;
30 30
import org.distorted.library.program.DistortedProgram;
31 31
import org.distorted.library.type.Static4D;
32
import org.distorted.library.uniformblock.UniformBlockAssociation;
33
import org.distorted.library.uniformblock.UniformBlockCenter;
32 34

  
33 35
import java.io.DataOutputStream;
34 36
import java.io.IOException;
......
49 51
   {
50 52
   private static final int ASSOC_UBO_BINDING  = 3;
51 53
   private static final int CENTER_UBO_BINDING = 4;
52
           static final int MAX_EFFECT_COMPONENTS= 100;
54
   public  static final int MAX_EFFECT_COMPONENTS= 100;
53 55

  
54 56
   // sizes of attributes of an individual vertex.
55 57
   private static final int POS_DATA_SIZE= 3; // vertex coordinates: x,y,z

Also available in: Unified diff