diff --git a/Sources/iron/RenderPath.hx b/Sources/iron/RenderPath.hx index 00c14f6d..fb6b9a64 100644 --- a/Sources/iron/RenderPath.hx +++ b/Sources/iron/RenderPath.hx @@ -571,7 +571,8 @@ class RenderPath { if (rt == null || rt.raw.width > 0 || rt.depthStencilFrom == "" || - rt == depthToRenderTarget.get(rt.depthStencilFrom)) { + rt == depthToRenderTarget.get(rt.depthStencilFrom) || + rt.raw.is_image == true) { continue; } @@ -580,7 +581,8 @@ class RenderPath { if (rt2 == null || rt2.raw.width > 0 || rt2.depthStencilFrom != "" || - depthToRenderTarget.get(rt2.raw.depth_buffer) != null) { + depthToRenderTarget.get(rt2.raw.depth_buffer) != null || + rt2.raw.is_image == true) { continue; } @@ -588,7 +590,7 @@ class RenderPath { break; } - if (nodepth != null && nodepth.raw.is_image != true) { + if (nodepth != null) { rt.image.setDepthStencilFrom(nodepth.image); } } diff --git a/Sources/iron/object/Uniforms.hx b/Sources/iron/object/Uniforms.hx index 9cdfb4f6..06221b1d 100644 --- a/Sources/iron/object/Uniforms.hx +++ b/Sources/iron/object/Uniforms.hx @@ -184,7 +184,7 @@ class Uniforms { g.setTextureParameters(context.textureUnits[j], TextureAddressing.Clamp, TextureAddressing.Clamp, TextureFilter.LinearFilter, TextureFilter.LinearFilter, MipMapFilter.NoMipFilter); } else { - g.setTexture3DParameters(context.textureUnits[j], TextureAddressing.Clamp, TextureAddressing.Clamp, TextureAddressing.Clamp, TextureFilter.LinearFilter, TextureFilter.LinearFilter, MipMapFilter.LinearMipFilter); + g.setTexture3DParameters(context.textureUnits[j], TextureAddressing.Mirror, TextureAddressing.Mirror, TextureAddressing.Mirror, TextureFilter.LinearFilter, TextureFilter.LinearFilter, MipMapFilter.NoMipFilter); } paramsSet = true; }