This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| # Line Shader | |
| A minimal setup to start with SpriteKit shaders. | |
| This setup uses a sprite as a drawing canvas. | |
| A shader draws a line from point A to point B. | |
| Touching the scene anywhere updates the point B location and the shader's drawing. | |
OlderNewer