Added WIP shader-phrases, annotations and tooling for shader phrases

resolving is done using the JVM class loader
This commit is contained in:
Edwin Jakobs
2019-09-06 17:14:12 +02:00
parent d7a3ba5328
commit 6c21f4417a
2 changed files with 7 additions and 0 deletions

View File

@@ -30,6 +30,12 @@ fun main() = application {
The extension will create a template script for you in `src/main/kotlin/live.kts`. You can The extension will create a template script for you in `src/main/kotlin/live.kts`. You can
edit this to see how the program updates automatically. edit this to see how the program updates automatically.
## Shade style errors
Recent versions of `orx-olive` automatically set the `org.openrndr.ignoreShadeStyleErrors` property which
makes OPENRNDR ignore errors in the shade style and return the default shader. To get this behaviour in
older versions add `-Dorg.openrndr.ignoreShadeStyleErrors=true` to the JVM arguments.
## Persistent Data ## Persistent Data
Sometimes you want to keep parts of your application persistent. In the following example Sometimes you want to keep parts of your application persistent. In the following example

View File

@@ -14,6 +14,7 @@ class Olive<P : Program> : Extension {
override fun setup(program: Program) { override fun setup(program: Program) {
System.setProperty("idea.io.use.fallback", "true") System.setProperty("idea.io.use.fallback", "true")
System.setProperty("org.openrndr.ignoreShadeStyleErrors", "true")
val f = File(script) val f = File(script)