Refraction

object Refraction
class Object
trait Matchable
class Any

Value members

Concrete methods

def blending(distance: Double): Blending

Replicates Indigo's original refraction/distortion layer behaviour

Replicates Indigo's original refraction/distortion layer behaviour

The problem with this method is that we have no "entity blend shader" capability to allow use to control how individual entities blend onto the layer below. As a result we have to use the same sort of mechanism we use for lighting to combine the entities - but this results in a weaker effect than we would like.

Value Params
distance

Max distance in pixels

Concrete fields

val shaders: Set[Shader]