Class NormalDisplacementSubdivision


public class NormalDisplacementSubdivision extends DisplacementSubdivision
This subdivision strategy splits an edge in two equal halves at its mid point. The midpoint itself is being displaced, however, in the average direction of face normals associated with this edge. The displacement amount is configurable as fraction of the original edge length. So given that:
 M = edge midpoint
 N = averaged normal vector
 l = edge length
 a = displacement amplification factor
 
 M' = M + N * a * l
 
  • Constructor Details

    • NormalDisplacementSubdivision

      public NormalDisplacementSubdivision(float amp)
  • Method Details