[openrndr-demos] Add rectangle batch demos
This commit is contained in:
@@ -3,14 +3,8 @@ 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)
|
||||
@@ -18,9 +12,6 @@ fun main() = application {
|
||||
|
||||
val cb = colorBuffer(128, 128)
|
||||
extend {
|
||||
|
||||
screenshots.afterScreenshot
|
||||
|
||||
drawer.isolatedWithTarget(rt) {
|
||||
drawer.ortho(rt)
|
||||
drawer.clear(ColorRGBa.PINK)
|
||||
@@ -28,6 +19,5 @@ fun main() = application {
|
||||
volumeTexture.copyTo(cb, 0)
|
||||
drawer.image(cb)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user