Set texture parameters.

This commit is contained in:
kovacsv 2021-08-10 17:28:10 +02:00
parent 759913d698
commit 294ae6a975

View File

@ -334,7 +334,11 @@ OV.ThreeImporter = class extends OV.ImporterBase
texture.name = textureName;
texture.url = dataUrl;
texture.buffer = base64Buffer.buffer;
// TODO: texture offset, rotation, scale
texture.rotation = threeMap.rotation;
texture.offset.x = threeMap.offset.x;
texture.offset.y = threeMap.offset.y;
texture.scale.x = threeMap.repeat.x;
texture.scale.y = threeMap.repeat.y;
return texture;
} catch (err) {
return null;