[orx-dnk3] Fix for render targets

This commit is contained in:
Edwin Jakobs
2020-06-14 21:38:49 +02:00
parent 2bcca72cf8
commit 56c6e29312

View File

@@ -440,8 +440,9 @@ class PBRMaterial : Material {
this.suppressDefaultOutput = true
this.vertexTransform = vs
fragmentTransform = fs
materialContext.pass.combiners.map {
if (rt is ProgramRenderTarget) {
if (rt is ProgramRenderTarget || materialContext.pass === DefaultPass || materialContext.pass === DefaultOpaquePass || materialContext.pass == DefaultTransparentPass) {
this.output(it.targetOutput, ShadeStyleOutput(0))
} else {
val index = rt.colorBufferIndex(it.targetOutput)