Revision 1585ba24
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/examples/effectqueue/EffectQueueRenderer.java | ||
---|---|---|
48 | 48 |
class EffectQueueRenderer implements GLSurfaceView.Renderer, EffectListener |
49 | 49 |
{ |
50 | 50 |
private static final int NUMLINES = 10; |
51 |
final int BWID = 300; |
|
52 |
final int BHEI = 400; |
|
51 |
private static final int MESH_QUALITY = 100; |
|
52 |
static final int BWID = 600; |
|
53 |
static final int BHEI = 600; |
|
53 | 54 |
|
54 | 55 |
private EffectQueueSurfaceView mView; |
55 | 56 |
private Paint mPaint; |
... | ... | |
77 | 78 |
mScale = new Static3D(1,1,1); |
78 | 79 |
MatrixEffectScale scaleEffect = new MatrixEffectScale(mScale); |
79 | 80 |
|
80 |
mMesh = new MeshFlat(80,80*texHeight/texWidth);
|
|
81 |
mMesh = new MeshFlat(MESH_QUALITY,MESH_QUALITY*texHeight/texWidth);
|
|
81 | 82 |
mTexture = new DistortedTexture(texWidth,texHeight); |
82 | 83 |
mEffects = new DistortedEffects(); |
83 | 84 |
mEffects.apply(scaleEffect); |
Also available in: Unified diff
Make the Fragment effects truly 3D: change their 4D 'region' into a 3D 'center' (a point in 3D) and 3D 'region' (which is now a set of 3 radii defining an ellipsoid around the center)
Also corresponding changes to the applications.