Scratch for Java

Shaders()

The shaders of a sprite or of the stage. The first one added is used at once; more than one can be active, applied in the order they were added.

Shader waves = this.getShaders().add("waves", "assets/waves.frag");
waves.set("strength", 0.02);
Shaders()

Create Shareable URL

Select Sections