[orx-dnk3] Fix for render targets
This commit is contained in:
@@ -440,8 +440,9 @@ class PBRMaterial : Material {
|
|||||||
this.suppressDefaultOutput = true
|
this.suppressDefaultOutput = true
|
||||||
this.vertexTransform = vs
|
this.vertexTransform = vs
|
||||||
fragmentTransform = fs
|
fragmentTransform = fs
|
||||||
|
|
||||||
materialContext.pass.combiners.map {
|
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))
|
this.output(it.targetOutput, ShadeStyleOutput(0))
|
||||||
} else {
|
} else {
|
||||||
val index = rt.colorBufferIndex(it.targetOutput)
|
val index = rt.colorBufferIndex(it.targetOutput)
|
||||||
|
|||||||
Reference in New Issue
Block a user