Revision f1f50ad1
Added by Leszek Koltunski over 5 years ago
| src/main/java/org/distorted/examples/triblur/TriblurRenderer.java | ||
|---|---|---|
| 86 | 86 |
mView = v; |
| 87 | 87 |
|
| 88 | 88 |
MeshCubes mesh = new MeshCubes(1,1,1); |
| 89 |
mesh.setStretch(OBJ_SIZE,OBJ_SIZE,OBJ_SIZE); |
|
| 90 | 89 |
|
| 91 | 90 |
mTex = new DistortedTexture(); |
| 92 | 91 |
|
| ... | ... | |
| 112 | 111 |
mScale2 = new Static3D(1.5f,1.5f,1.5f); |
| 113 | 112 |
Static3D center = new Static3D(0,0,0); |
| 114 | 113 |
|
| 115 |
// VertexEffectScale scaleEffectV = new VertexEffectScale(OBJ_SIZE);
|
|
| 114 |
VertexEffectScale scaleEffectV = new VertexEffectScale(OBJ_SIZE); |
|
| 116 | 115 |
MatrixEffectScale scaleEffect1 = new MatrixEffectScale(mScale1); |
| 117 | 116 |
MatrixEffectScale scaleEffect2 = new MatrixEffectScale(mScale2); |
| 118 | 117 |
MatrixEffectQuaternion quatEffect1 = new MatrixEffectQuaternion(mQuat1, center); |
| ... | ... | |
| 129 | 128 |
effects[i] = new DistortedEffects(); |
| 130 | 129 |
effects[i].apply(mBlur[i]); |
| 131 | 130 |
effects[i].apply(chroma[i]); |
| 132 |
// effects[i].apply(scaleEffectV);
|
|
| 131 |
effects[i].apply(scaleEffectV); |
|
| 133 | 132 |
effects[i].apply(new MatrixEffectMove(moveVector[i])); |
| 134 | 133 |
effects[i].apply(quatEffect2); |
| 135 | 134 |
effects[i].apply(quatEffect1); |
Also available in: Unified diff
Finally, after removing the calculation of the halo from the library and giving this decision to the user, we can update the Triblur app for the new MeshBase.setStretch-less API.