Revision de77a6c5
Added by Leszek Koltunski over 3 years ago
src/main/res/raw/main_vertex_shader.glsl | ||
---|---|---|
56 | 56 |
// 4: effect's EQU association |
57 | 57 |
}; |
58 | 58 |
|
59 |
uniform vec4 vUniforms[3*NUM_VERTEX]; // i-th effect is 3 consecutive vec4's: [3*i], [3*i+1], [3*i+2]. |
|
59 |
layout (std140) uniform vUniformFloats |
|
60 |
{ |
|
61 |
vec4 vUniforms[3*NUM_VERTEX]; // i-th effect is 3 consecutive vec4's: [3*i], [3*i+1], [3*i+2]. |
|
60 | 62 |
// The first vec4 is the Interpolated values, |
61 | 63 |
// second vec4: first float - cache, next 3: Center, the third - the Region. |
64 |
}; |
|
62 | 65 |
|
63 | 66 |
layout (std140) uniform componentAssociation |
64 | 67 |
{ |
Also available in: Unified diff
Introduce another Uniform Block Object. Now we can have much more vertex and fragment effects - up their default number to 100.