Add envmap

This commit is contained in:
Lubos Lenco
2018-01-30 21:50:55 +01:00
parent 25d153a9c8
commit b31390864e
4 changed files with 2 additions and 9 deletions
BIN
View File
Binary file not shown.
+1 -9
View File
@@ -86,7 +86,6 @@ class UINodes extends armory.Trait {
if (frame == 8) parseMaterial(); // Temp cpp fix
frame++;
//
var mouse = iron.system.Input.getMouse();
mreleased = mouse.released();
@@ -94,9 +93,7 @@ class UINodes extends armory.Trait {
if (ui.changed) {
mchanged = true;
if (!mdown) {
changed = true;
}
if (!mdown) changed = true;
}
if ((mreleased && mchanged) || changed) {
mchanged = changed = false;
@@ -104,7 +101,6 @@ class UINodes extends armory.Trait {
}
//
if (!show) return;
if (!UITrait.uienabled) return;
var keyboard = iron.system.Input.getKeyboard();
@@ -138,11 +134,8 @@ class UINodes extends armory.Trait {
}
public static var nodes = new Nodes();
static var canvas:TNodeCanvas = null;
static var bg:kha.Image = null;
function getNodeX():Int {
var mouse = iron.system.Input.getMouse();
return Std.int((mouse.x - wx - nodes.PAN_X()) / nodes.SCALE);
@@ -180,7 +173,6 @@ class UINodes extends armory.Trait {
@:access(zui.Zui)
function render2D(g:kha.graphics2.Graphics) {
if (!show) return;
if (!UITrait.uienabled && ui.inputRegistered) ui.unregisterInput();
+1
View File
@@ -195,6 +195,7 @@ class UITrait extends armory.Trait {
function importAsset(path:String) {
if (!checkImageFormat(path)) {
showMessage("Error: Unknown asset format");
return;
}
iron.data.Data.getImage(path, function(image:kha.Image) {
BIN
View File
Binary file not shown.