Add docs for custom shader path
Browse files at this commit494eb0d6904a5a39dc3c110ff8e3dd9de046b81bParent: d9cb1c0- docs
- add docs for custom shader path
1 changed file +14 -0
docs/wiki/Configuration:-Animations.mdmodified+14 -0
| @@ -440,6 +440,20 @@ animations { | |||
| 440 | } | 440 | } |
| 441 | ``` | 441 | ``` |
| 442 | 442 | ||
| 443 | +### Specifying `custom-shader` by Path | ||
| 444 | + | ||
| 445 | +<sup>Since: next release</sup> | ||
| 446 | + | ||
| 447 | +For animations that accept a `custom-shader`, you can also attach the shader by path, rather than writing it out inline. | ||
| 448 | + | ||
| 449 | +```kdl,must-fail | ||
| 450 | +animations { | ||
| 451 | + window-open { | ||
| 452 | + custom-shader path="./my-shader.glsl" | ||
| 453 | + } | ||
| 454 | +} | ||
| 455 | +``` | ||
| 456 | + | ||
| 443 | ### Synchronized Animations | 457 | ### Synchronized Animations |
| 444 | 458 | ||
| 445 | <sup>Since: 0.1.5</sup> | 459 | <sup>Since: 0.1.5</sup> |