Skip to content

Commit

Permalink
Updated to latest Heaps
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Jan 11, 2024
1 parent d22282d commit ec977c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/electron.renderer/display/LayerRender.hx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class LayerRender {
}


static var _cachedIdentityVector = new h3d.Vector(1,1,1,1);
static var _cachedIdentityVector = new h3d.Vector4(1,1,1,1);
public static inline function renderAutoTileInfos(li:data.inst.LayerInstance, td:data.def.TilesetDef, tileInfos, tg:h2d.TileGroup) {
_cachedIdentityVector.a = tileInfos.a;
@:privateAccess tg.content.addTransform(
Expand Down
4 changes: 2 additions & 2 deletions src/electron.renderer/display/WorldRender.hx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class WorldRender extends dn.Process {
col: new h2d.Bitmap(w),
tex: new dn.heaps.TiledTexture(1, 1, Assets.elements.getTile("largeStripes"), w),
}
worldBg.col.colorAdd = new h3d.Vector(0,0,0,0);
worldBg.col.colorAdd = new h3d.Vector(0,0,0);
worldBg.tex.alpha = 0.5;
editor.root.add(worldBg.wrapper, Const.DP_BG);
worldBg.wrapper.alpha = 0;
Expand Down Expand Up @@ -462,7 +462,7 @@ class WorldRender extends dn.Process {

function updateBgColor() {
var r = -M.fclamp( 0.9 * 0.04/camera.adjustedZoom, 0, 1);
worldBg.col.colorAdd.set(r,r,r,0);
worldBg.col.colorAdd.set(r,r,r);
}

function renderWorldBg() {
Expand Down

0 comments on commit ec977c6

Please sign in to comment.