From 6c21f4417a5b88e9f0299573c1f9809f6fe43f97 Mon Sep 17 00:00:00 2001 From: Edwin Jakobs Date: Fri, 6 Sep 2019 17:14:12 +0200 Subject: [PATCH] Added WIP shader-phrases, annotations and tooling for shader phrases resolving is done using the JVM class loader --- orx-olive/README.md | 6 ++++++ orx-olive/src/main/kotlin/Olive.kt | 1 + 2 files changed, 7 insertions(+) diff --git a/orx-olive/README.md b/orx-olive/README.md index fa82ca4f..74c5d4ab 100644 --- a/orx-olive/README.md +++ b/orx-olive/README.md @@ -30,6 +30,12 @@ fun main() = application { 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. +## 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 Sometimes you want to keep parts of your application persistent. In the following example diff --git a/orx-olive/src/main/kotlin/Olive.kt b/orx-olive/src/main/kotlin/Olive.kt index 7480252a..c92b2abf 100644 --- a/orx-olive/src/main/kotlin/Olive.kt +++ b/orx-olive/src/main/kotlin/Olive.kt @@ -14,6 +14,7 @@ class Olive

: Extension { override fun setup(program: Program) { System.setProperty("idea.io.use.fallback", "true") + System.setProperty("org.openrndr.ignoreShadeStyleErrors", "true") val f = File(script)