Revision 4c1dd6e9
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/EffectTypes.java | ||
---|---|---|
31 | 31 |
/** |
32 | 32 |
* Effects that change the ModelView matrix: Rotations, Moves, Shears, Scales. |
33 | 33 |
*/ |
34 |
MATRIX ( 0x1 ), // we will need to perform bitwise operations on those - so keep the values 1,2,4,8...
|
|
34 |
MATRIX ( 0x1 ), // we will need to perform bitwise operations on those - so keep the values 1,2,4,8...
|
|
35 | 35 |
/** |
36 | 36 |
* Effects that get executed in the Vertex shader: various distortions of the vertices. |
37 | 37 |
*/ |
38 |
VERTEX ( 0x2 ), |
|
38 |
VERTEX ( 0x2 ),
|
|
39 | 39 |
/** |
40 | 40 |
* Effects executed in the Fragment shader: changes of color, hue, transparency levels, etc. |
41 | 41 |
*/ |
42 |
FRAGMENT ( 0x4 ); |
|
42 |
FRAGMENT ( 0x4 ), |
|
43 |
/** |
|
44 |
* Postprocessing done to the texture the first stage fragment shader created (if this queue is |
|
45 |
* empty, the first stage skips this intermediate texture) |
|
46 |
*/ |
|
47 |
POSTPROCESS ( 0x8 ); |
|
43 | 48 |
|
44 | 49 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
45 | 50 |
|
... | ... | |
63 | 68 |
// to EffectQueueMatrix.setMax(int) |
64 | 69 |
|
65 | 70 |
maxtable[1] = 5; // Max 5 VERTEX Effects |
66 |
maxtable[2] = 5; // Max 3 FRAGMENT Effects |
|
71 |
maxtable[2] = 5; // Max 5 FRAGMENT Effects |
|
72 |
maxtable[3] = 5; // Max 5 POSTPROCESSING Effects |
|
67 | 73 |
} |
68 | 74 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
69 | 75 |
} |
Also available in: Unified diff
Beginnings of support for postprocessing Effects.