Revision 1f9a52f1
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/examples/stencil/StencilRenderer.java | ||
---|---|---|
89 | 89 |
cube2Node.glStencilMask(0x00); // Don't write anything to stencil buffer |
90 | 90 |
cube2Node.glDepthMask(true); // Write to depth buffer |
91 | 91 |
|
92 |
mScreen = new DistortedScreen(); |
|
92 |
mScreen = new DistortedScreen(mView);
|
|
93 | 93 |
mScreen.attach(cube1Node); |
94 | 94 |
mScreen.attach(floorNode); |
95 | 95 |
mScreen.attach(cube2Node); |
96 | 96 |
mScreen.glClearColor(1.0f,1.0f,1.0f,1.0f); |
97 |
|
|
98 |
mView.setEGLConfigChooser(5,6,5,0,16,8); // Screen: 16 bit depth, 8 bit STENCIL |
|
97 | 99 |
} |
98 | 100 |
|
99 | 101 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Simplify setting up DistortedScreen.