Class: BlendModePipe

BlendModePipe

This Pipe handles the blend mode switching of the renderer. It will insert instructions into the renderers.InstructionSet to switch the blend mode according to the blend modes of the scene graph.

This pipe is were wwe handle Advanced blend modes. Advanced blend modes essentially wrap the renderables in a filter that applies the blend mode.

You only need to use this class if you are building your own render instruction set rather than letting PixiJS build the instruction set for you by traversing the scene graph

Implements

Methods

setBlendMode (renderable, blendMode, instructionSet)

This ensures that a blendMode switch is added to the instruction set if the blend mode has changed.

Name Type Description
renderable Renderable

The renderable we are adding to the instruction set

blendMode BLEND_MODES

The blend mode of the renderable

instructionSet InstructionSet

The instruction set we are adding to