mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
speed up loading time a bit
This commit is contained in:
parent
b626aebe91
commit
b9ca536672
1 changed files with 2 additions and 2 deletions
|
|
@ -82,8 +82,8 @@ class Sky extends Object {
|
|||
// var tex = new h3d.mat.Texture();
|
||||
// skyboxImages.push(new BitmapData(128, 128));
|
||||
} else {
|
||||
var image = ResourceLoader.getResource(filenames[0], ResourceLoader.getImage, this.imageResources).toTexture();
|
||||
var pixels = image.capturePixels(0, 0);
|
||||
var image = ResourceLoader.getResource(filenames[0], ResourceLoader.getImage, this.imageResources).toBitmap();
|
||||
var pixels = image.getPixels();
|
||||
skyboxImages.push(pixels);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue