CPSlideInShader

org.cosplay.prefabs.shaders.CPSlideInShader$
See theCPSlideInShader companion class

Companion object with utility methods.

Attributes

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

Members list

Value members

Concrete methods

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

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

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

Value parameters

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. It can be changed later.

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.

Attributes

Source
CPSlideInShader.scala