Project

General

Profile

« Previous | Next » 

Revision 5e96393c

Added by Leszek Koltunski over 5 years ago

Make the Sink effect fully 3D.

View differences:

src/main/java/org/distorted/library/effect/VertexEffectPinch.java
28 28
/**
29 29
 * Pull all points around the center of the Effect towards a line passing through the center
30 30
 * (that's if degree>=1) or push them away from the line (degree<=1).
31
 *
32
 * Note: this is not a fully 3D effect - the pinching is always within the XY plane; z coordinates
33
 * of all vertices remain unaffected. If someone wants a fully 3D Pinch effect, we'd probably need
34
 * to write another VertexEffectPinch3D with 2 more arguments (latitude and longitude angles defining
35
 * the plane the pinching works on).
31 36
 */
32 37
public class VertexEffectPinch extends VertexEffect
33 38
  {

Also available in: Unified diff