Revision 8eed34d3
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/examples/objecttree/ObjectTreeRenderer.java | ||
---|---|---|
206 | 206 |
Dynamic1D sinkDyn = new Dynamic1D(3000,0.0f); |
207 | 207 |
sinkDyn.add(new Static1D(1.0f)); |
208 | 208 |
sinkDyn.add(new Static1D(0.3f)); |
209 |
VertexEffectSink sink = new VertexEffectSink(sinkDyn, new Static3D(gridWidth/2.0f, gridHeight/2.0f, gridDepth/2.0f) );
|
|
209 |
VertexEffectSink sink = new VertexEffectSink(sinkDyn, new Static3D(0,0,0) );
|
|
210 | 210 |
gridEffects.apply(sink); |
211 | 211 |
|
212 | 212 |
VertexEffectSink.enable(); |
Also available in: Unified diff
Moving the Vertex and Fragment centers of effect to the center of the Mesh.