Revision d9a683de
Added by Leszek Koltunski 10 days ago
src/main/java/org/distorted/examples/twocomponents/TwoComponentsRenderer.java | ||
---|---|---|
170 | 170 |
|
171 | 171 |
void visible(boolean left) |
172 | 172 |
{ |
173 |
if( left ) |
|
174 |
{ |
|
175 |
mInvisibleLeft = !mInvisibleLeft; |
|
176 |
mDisappear.setMeshAssociation(0, mInvisibleLeft ? 0 : -1 ); |
|
177 |
} |
|
178 |
else |
|
179 |
{ |
|
180 |
mInvisibleRight= !mInvisibleRight; |
|
181 |
mDisappear.setMeshAssociation(0, mInvisibleRight ? 1 : -1 ); |
|
182 |
} |
|
173 |
if( left ) mInvisibleLeft = !mInvisibleLeft; |
|
174 |
else mInvisibleRight= !mInvisibleRight; |
|
175 |
|
|
176 |
int andAssoc = 0; |
|
177 |
if( mInvisibleLeft ) andAssoc |= 0x1; |
|
178 |
if( mInvisibleRight) andAssoc |= 0x2; |
|
179 |
|
|
180 |
mDisappear.setMeshAssociation(andAssoc, -1 ); |
|
183 | 181 |
} |
184 | 182 |
|
185 | 183 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
222 | 220 |
tmp[0].mergeEffComponents(); |
223 | 221 |
tmp[1].mergeEffComponents(); |
224 | 222 |
|
225 |
tmp[0].setEffectAssociation(0,0,0); // set the equAssoc of the 0th (the only) component to 0
|
|
226 |
tmp[1].setEffectAssociation(0,0,1); // set the equAssoc of the 0th (the only) component to 1
|
|
223 |
tmp[0].setEffectAssociation(0,1,0); // set the equAssoc of the 0th (the only) component to 0
|
|
224 |
tmp[1].setEffectAssociation(0,2,1); // set the equAssoc of the 0th (the only) component to 1
|
|
227 | 225 |
|
228 | 226 |
MeshBase combined = new MeshJoined(tmp); |
229 | 227 |
|
Also available in: Unified diff
bugfix