Revision 57a3f798
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/glow/GlowRenderer.java | ||
---|---|---|
74 | 74 |
effects.apply(mGlow); |
75 | 75 |
|
76 | 76 |
MeshQuad quad = new MeshQuad(); |
77 |
quad.setComponentCenter(0,0,0,-0.1f); |
|
77 | 78 |
|
78 | 79 |
mScreen = new DistortedScreen(); |
79 | 80 |
mScreen.attach(mLeaf, effects, quad ); |
src/main/java/org/distorted/examples/movingglow/MovingGlowRenderer.java | ||
---|---|---|
76 | 76 |
mView = v; |
77 | 77 |
|
78 | 78 |
MeshQuad mesh = new MeshQuad(); |
79 |
mesh.setComponentCenter(0,0,0,-0.1f); |
|
80 |
|
|
79 | 81 |
mScale= new Static3D(1,1,1); |
80 | 82 |
mLeaf = new DistortedTexture(); |
81 | 83 |
DistortedTexture surface = new DistortedTexture(); |
Also available in: Unified diff
Fix: nwo we need to explicitly set mesh center to negative Z if we want to GLOW a flat object.