Revision 8298e6af
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/EffectNames.java | ||
---|---|---|
26 | 26 |
* Effect's 'Type' is one of the constants defined in {@see EffectTypes}. |
27 | 27 |
* </p> |
28 | 28 |
* <p> |
29 |
* Effect's 'Uniforms' are a vector of 7 (matrix effects) 9 (vertex) or 8 (fragment) floats, which
|
|
29 |
* Effect's 'Uniforms' are a vector of 7 (matrix effects) 12 (vertex) or 8 (fragment) floats, which
|
|
30 | 30 |
* together form full information how to compute a given effect. |
31 | 31 |
* Typically, some of those values will be Interpolated in CPU (by one of the 'EffectQueueX.compute()' |
32 | 32 |
* methods) and the effect of such Interpolation sent to the Shaders. |
... | ... | |
85 | 85 |
|
86 | 86 |
///////////////////////////////////////////////////////////////////////////////// |
87 | 87 |
// VERTEX EFFECTS |
88 |
// Always 12 Uniforms: 4 per-effect interpolated values, 2 caches, 2-dimensional
|
|
89 |
// center of the effect, 4-dimensional Region
|
|
88 |
// Always 12 Uniforms: 6 per-effect interpolated values, 2-dimensional center of
|
|
89 |
// the effect, 4-dimensional Region |
|
90 | 90 |
/** |
91 | 91 |
* Apply a 3D vector of force to area around a point on the surface of the Object. |
92 | 92 |
* <p> |
... | ... | |
125 | 125 |
SWIRL ( EffectTypes.VERTEX , new float[] {0.0f} ), |
126 | 126 |
/** |
127 | 127 |
* Directional sinusoidal wave effect. The direction of the wave is given by the 'angle' |
128 |
* parameter, which is the angle (in degrees) the direction forms with the X-axis.
|
|
128 |
* parameters. Details: {@see DistortedObject#wave(Data4D,Data2D)}
|
|
129 | 129 |
* <p> |
130 | 130 |
* Uniforms: (amplitude,length,angleAlpha,angleBeta, |
131 | 131 |
* UNUSED, UNUSED,centerX,centerY, |
Also available in: Unified diff
Improvements to comments.