Revision 687263cc
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/triblur/TriblurRenderer.java | ||
---|---|---|
85 | 85 |
|
86 | 86 |
MeshCubes mesh = new MeshCubes(1,1,1); |
87 | 87 |
|
88 |
mTex = new DistortedTexture(OBJ_SIZE,OBJ_SIZE);
|
|
88 |
mTex = new DistortedTexture(); |
|
89 | 89 |
|
90 | 90 |
mQuat1 = new Static4D(0,0,0,1); // unity |
91 | 91 |
mQuat2 = new Static4D(0,0,0,1); // quaternions |
... | ... | |
126 | 126 |
mBlur[i] = new PostprocessEffectBlur(mEffectVector[i]); |
127 | 127 |
mGlow[i] = new PostprocessEffectGlow(mEffectVector[i], new Static4D(1.0f,1.0f,1.0f,0.5f) ); |
128 | 128 |
chroma[i] = new FragmentEffectChroma( new Static1D(0.3f), chromaVector[i]); |
129 |
effects[i] = new DistortedEffects(); |
|
129 |
effects[i] = new DistortedEffects(OBJ_SIZE,OBJ_SIZE,OBJ_SIZE);
|
|
130 | 130 |
|
131 | 131 |
effects[i].apply(mBlur[i]); |
132 | 132 |
effects[i].apply(chroma[i]); |
Also available in: Unified diff
Move the 'pre-multiply mesh before applying any effects' thing from [(Xsize of texture, Ysize of texture) x Mesh's zFactor] to Effects.setStretch(sx,sy,sz)