Revision b1fca44e
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/generic/GenericRenderer.java | ||
---|---|---|
29 | 29 |
import org.distorted.library.effect.MatrixEffectMove; |
30 | 30 |
import org.distorted.library.effect.MatrixEffectQuaternion; |
31 | 31 |
import org.distorted.library.effect.MatrixEffectScale; |
32 |
import org.distorted.library.effect.VertexEffectScale; |
|
32 | 33 |
import org.distorted.library.main.DistortedLibrary; |
33 | 34 |
import org.distorted.library.main.DistortedEffects; |
34 | 35 |
import org.distorted.library.main.DistortedNode; |
... | ... | |
140 | 141 |
regionEffects.apply(quat1cen); |
141 | 142 |
|
142 | 143 |
resetMatrixEffects(); |
144 |
resetVertexEffects(); |
|
143 | 145 |
|
144 | 146 |
// quite tricky: move the background exactly to the FAR plane! (see InternalOutputSurface.setProjection() ) |
145 | 147 |
backgroundEffects.apply(new MatrixEffectScale(mScaleBackground) ); |
... | ... | |
164 | 166 |
mQuat2.set(0,0,0,1); |
165 | 167 |
} |
166 | 168 |
|
169 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
170 |
|
|
171 |
void resetVertexEffects() |
|
172 |
{ |
|
173 |
Static3D scale = new Static3D(mObjWidth, mObjHeight, mObjDepth); |
|
174 |
mObjectEffects.apply( new VertexEffectScale(scale) ); |
|
175 |
} |
|
176 |
|
|
167 | 177 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
168 | 178 |
|
169 | 179 |
void showRegionAndCenter(boolean showRegion, boolean showCenter) |
Also available in: Unified diff
Convert Generic to stretchless API.