Revision d7413405
Added by Leszek Koltunski almost 6 years ago
src/main/java/org/distorted/examples/transparency/TransparencyRenderer.java | ||
---|---|---|
84 | 84 |
mNode = new DistortedNode[NUM_OBJECTS]; |
85 | 85 |
mTex = new DistortedTexture[NUM_OBJECTS]; |
86 | 86 |
|
87 |
FragmentEffectAlpha[] alpha= new FragmentEffectAlpha[NUM_OBJECTS]; |
|
88 |
DistortedEffects[] effects = new DistortedEffects[NUM_OBJECTS]; |
|
87 |
FragmentEffectAlpha[] alpha = new FragmentEffectAlpha[NUM_OBJECTS]; |
|
88 |
DistortedEffects[] effects = new DistortedEffects[NUM_OBJECTS]; |
|
89 |
PostprocessEffectBlur[] blur = new PostprocessEffectBlur[NUM_OBJECTS]; |
|
89 | 90 |
|
90 | 91 |
mMove = new Static3D(0,0,0); |
91 | 92 |
mScale = new Static3D(1.0f,1.0f,1.0f); |
... | ... | |
96 | 97 |
MatrixEffectQuaternion quatEffect1 = new MatrixEffectQuaternion(mQuat1, mCenter); |
97 | 98 |
MatrixEffectQuaternion quatEffect2 = new MatrixEffectQuaternion(mQuat2, mCenter); |
98 | 99 |
|
99 |
PostprocessEffectBlur blur = new PostprocessEffectBlur(new Static1D(0)); |
|
100 | 100 |
|
101 | 101 |
for(int i=0; i<NUM_OBJECTS; i++) |
102 | 102 |
{ |
... | ... | |
104 | 104 |
mMoveVector[i] = new Static3D(0,0,0); |
105 | 105 |
mAlphaVector[i] = new Static1D(0.5f); |
106 | 106 |
alpha[i] = new FragmentEffectAlpha(mAlphaVector[i]); |
107 |
blur[i] = new PostprocessEffectBlur(new Static1D(0)); |
|
107 | 108 |
effects[i] = new DistortedEffects(); |
108 | 109 |
|
109 |
effects[i].apply(blur); |
|
110 |
effects[i].apply(blur[i]);
|
|
110 | 111 |
effects[i].apply(alpha[i]); |
111 | 112 |
effects[i].apply(moveEffect); |
112 | 113 |
effects[i].apply(scaleEffect); |
Also available in: Unified diff
OIT: lots of progress on all fronts. Still a few bugs to solve though!