From 87a333dbac176d7883762dee66ecbed7d336febc Mon Sep 17 00:00:00 2001 From: Edwin Jakobs Date: Thu, 10 Jan 2019 21:22:39 +0100 Subject: [PATCH] Fix projection/view/model transform --- orx-compositor/src/main/kotlin/Compositor.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/orx-compositor/src/main/kotlin/Compositor.kt b/orx-compositor/src/main/kotlin/Compositor.kt index 590d9e95..cbc793c8 100644 --- a/orx-compositor/src/main/kotlin/Compositor.kt +++ b/orx-compositor/src/main/kotlin/Compositor.kt @@ -2,6 +2,7 @@ package org.openrndr.extra.compositor import org.openrndr.color.ColorRGBa import org.openrndr.draw.* +import org.openrndr.math.Matrix44 /** * A single layer representation @@ -46,6 +47,9 @@ class Layer internal constructor() { val lblend = blendFilter if (lblend == null) { drawer.isolatedWithTarget(rt) { + drawer.ortho(rt) + drawer.view = Matrix44.IDENTITY + drawer.model = Matrix44.IDENTITY drawer.image(layerPost, layerPost.bounds, drawer.bounds) } } else {