Bump to OPENRNDR 0.3.44-rc.2

This commit is contained in:
Edwin Jakobs
2020-07-13 11:45:13 +02:00
parent 5223ee0035
commit 62f6cd6098
33 changed files with 843 additions and 21 deletions

View File

@@ -0,0 +1,33 @@
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.draw.*
import org.openrndr.extensions.Screenshots
fun main() = application {
program {
val screenshots = extend(Screenshots()) {
}
val volumeTexture = VolumeTexture.create(128,128,32)
val rt = renderTarget(128, 128) {
volumeTexture(volumeTexture, 0)
}
val cb = colorBuffer(128, 128)
extend {
screenshots.afterScreenshot
drawer.isolatedWithTarget(rt) {
drawer.ortho(rt)
drawer.clear(ColorRGBa.PINK)
}
volumeTexture.copyTo(cb, 0)
drawer.image(cb)
}
}
}