Scratch for Java

Shaders()

The shaders belonging to one sprite or stage, and which of them is currently drawn with.

Reached through getShaders(), so that shader handling does not take up room in the everyday API of a sprite:

this.getShaders().add("blur", "blur.frag", null);
this.getShaders().switchTo("blur");

Syntax

Java

new Shaders(owner)
new Shaders(s)
Shaders()

Create Shareable URL

Select Sections