Revision b4cbe056
Added by Leszek Koltunski over 1 year ago
src/main/java/org/distorted/main/RubikRenderer.java | ||
---|---|---|
13 | 13 |
import android.opengl.GLES30; |
14 | 14 |
import android.opengl.GLSurfaceView; |
15 | 15 |
|
16 |
import org.distorted.library.main.InternalOutputSurface; |
|
16 | 17 |
import org.distorted.objectlib.effects.BaseEffect; |
17 | 18 |
import org.distorted.library.effect.EffectType; |
18 | 19 |
import org.distorted.library.effect.VertexEffectQuaternion; |
... | ... | |
22 | 23 |
import org.distorted.library.mesh.MeshBase; |
23 | 24 |
import org.distorted.external.RubikNetwork; |
24 | 25 |
import org.distorted.objectlib.main.ObjectControl; |
26 |
import org.distorted.overlays.OverlayGeneric; |
|
25 | 27 |
|
26 | 28 |
import javax.microedition.khronos.egl.EGLConfig; |
27 | 29 |
import javax.microedition.khronos.opengles.GL10; |
... | ... | |
89 | 91 |
mFPS = new Fps(); |
90 | 92 |
mScreen = new DistortedScreen(); |
91 | 93 |
mScreen.glClearColor(BRIGHTNESS, BRIGHTNESS, BRIGHTNESS, 1.0f); |
94 |
mScreen.enableDepthStencil(InternalOutputSurface.DEPTH_NO_STENCIL); |
|
92 | 95 |
} |
93 | 96 |
|
94 | 97 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
124 | 127 |
VertexEffectRotate.enable(); |
125 | 128 |
VertexEffectQuaternion.enable(); |
126 | 129 |
BaseEffect.Type.enableEffects(); |
130 |
OverlayGeneric.enableEffects(); |
|
127 | 131 |
|
128 | 132 |
DistortedLibrary.onSurfaceCreated(mView.getContext(),this,1); |
129 | 133 |
DistortedLibrary.setCull(true); |
Also available in: Unified diff
Disable writing DEPTH and STENCIL to the Screen from both the TwistyObjectNode and the Overlay Node.