CurlMesh

constructor(maxCurlSplits: Int, drawCurlPosition: Boolean = DRAW_CURL_POSITION, drawPolygonOutlines: Boolean = DRAW_POLYGON_OUTLINES, drawShadow: Boolean = DRAW_SHADOW, drawTexture: Boolean = DRAW_TEXTURE, shadowInnerColor: FloatArray = SHADOW_INNER_COLOR, shadowOuterColor: FloatArray = SHADOW_OUTER_COLOR, colorFactorOffset: Float = DEFAULT_COLOR_FACTOR_OFFSET)

Constructor for mesh object.

Parameters

maxCurlSplits

maximum number of times the curl can be divided into. The bigger the value the smoother the curl will be, at the expense of having more polygons to be drawn.

drawCurlPosition

number of times the curl can be divided into. The bigger the value the smoother the curl will be, at the expense of having more polygons to be drawn.

drawPolygonOutlines

Flag for drawing polygon outlines. Seeing polygon outlines gives good insight on how original rectangle is divided.

drawShadow

Flag for enabling shadow rendering.

drawTexture

Flag for texture rendering.

shadowInnerColor

Inner color for shadow. Inner color is the color drawn next to surface where shadowed area starts.

shadowOuterColor

Outer color for shadow. Outer color is the color the shadow ends to.

colorFactorOffset

Color factor offset to make darker or clearer the area of the texture close to the curl.