Adds BorderShader to samples.
@@ -184,6 +184,15 @@ public class SampleShaders {
screen.addComponent(label);
+ labelBuilder.setPosition(0, labelBuilder.getYPosition() + 1);
+ labelBuilder.setText("Sample text 123456789!@#$%^&*()_+-=. Using BorderShader.");
+ label = labelBuilder.build();
+ for (final Tile tile : label.getTiles().getRow(0)) {
+ tile.addShaders(new BorderShader());
+ }
+ screen.addComponent(label);
+
+
screen.addCanvasToFrame();
screen.draw();
}
