CPSlideOutShader

org.cosplay.prefabs.shaders.CPSlideOutShader$
See theCPSlideOutShader companion class

Companion object with utility methods.

Attributes

Companion:
class
Source:
CPSlideOutShader.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def sigmoid(dir: CPSlideDirection, entireFrame: Boolean, durMs: Long, bgPx: CPPixel, onFinish: CPSceneObjectContext => Unit, autoStart: Boolean, skip: (CPZPixel, Int, Int) => Boolean): CPSlideOutShader

Creates new slide out shader with sigmoid-based color balance function.

Creates new slide out shader with sigmoid-based color balance function.

Attributes

autoStart

Whether to start shader right away. Default value is true.

bgPx

Background pixel to fade in from.

dir

Slide direction as defined by CPSlideDirection.

durMs

Duration of the effect in milliseconds.

entireFrame

Whether apply to the entire camera frame or just the object this shader is attached to.

onFinish

Optional callback to call when this shader finishes. Default is a no-op.

skip

Predicate allowing to skip certain pixel from the shader. Typically used to skip background or certain Z-index. Default predicate returns false for all pixels.

Source:
CPSlideOutShader.scala