Revision 78ff6ea9
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/library/mesh/UniformBlockAssociation.java | ||
---|---|---|
32 | 32 |
private static final int BLOCK_SIZE = 16*MAX_EFFECT_COMPONENTS; |
33 | 33 |
private static final int DEFAULT_ASSOCIATION = 0xffffffff; |
34 | 34 |
|
35 |
private InternalBuffer mUBO; |
|
36 |
private int[] mAssociations; |
|
35 |
private final InternalBuffer mUBO;
|
|
36 |
private final int[] mAssociations;
|
|
37 | 37 |
|
38 | 38 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
39 | 39 |
|
Also available in: Unified diff
Convert the Integer part (i.e. effect names and the two associations) of vertex and fragment shaders to Uniform Buffer Objects.
Next: convert the last part, i.e. the float effect parameters.