main #136
@ -333,7 +333,7 @@ class Inc {
|
|||||||
var shadowmap = getShadowMapAtlas(atlas, true);
|
var shadowmap = getShadowMapAtlas(atlas, true);
|
||||||
path.setTargetStream(shadowmap);
|
path.setTargetStream(shadowmap);
|
||||||
|
|
||||||
path.clearTarget(0xffffff, 0.0);
|
path.currentG.clear(0xffffffff, 0.0);
|
||||||
|
|
||||||
for (tile in atlas.activeTiles) {
|
for (tile in atlas.activeTiles) {
|
||||||
if (tile.light == null || !tile.light.visible || tile.light.culledLight
|
if (tile.light == null || !tile.light.visible || tile.light.culledLight
|
||||||
@ -549,7 +549,7 @@ class Inc {
|
|||||||
for (i in 0...faces) {
|
for (i in 0...faces) {
|
||||||
if (faces > 1) path.currentFace = i;
|
if (faces > 1) path.currentFace = i;
|
||||||
path.setTarget(shadowmap_transparent);
|
path.setTarget(shadowmap_transparent);
|
||||||
path.clearTarget(0xffffff, 0.0);
|
path.currentG.clear(0xffffffff, 0.0);
|
||||||
if (l.data.raw.cast_shadow) {
|
if (l.data.raw.cast_shadow) {
|
||||||
path.drawMeshes("shadowmap_transparent");
|
path.drawMeshes("shadowmap_transparent");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -543,7 +543,7 @@ class RenderPathDeferred {
|
|||||||
t2.format = "RGBA64";
|
t2.format = "RGBA64";
|
||||||
path.createRenderTarget(t2);
|
path.createRenderTarget(t2);
|
||||||
path.setTarget("empty_shadowmap_transparent");
|
path.setTarget("empty_shadowmap_transparent");
|
||||||
path.clearTarget(0xffffffff, null);
|
path.currentG.clear(0xffffffff, null);
|
||||||
#end
|
#end
|
||||||
}
|
}
|
||||||
#end
|
#end
|
||||||
|
|||||||
Reference in New Issue
Block a user