Added WIP shader-phrases, annotations and tooling for shader phrases
resolving is done using the JVM class loader
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user