From 294ae6a975a7c39c71d3076c9749ca15ce273795 Mon Sep 17 00:00:00 2001 From: kovacsv Date: Tue, 10 Aug 2021 17:28:10 +0200 Subject: [PATCH] Set texture parameters. --- source/threejs/threeimporter.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/threejs/threeimporter.js b/source/threejs/threeimporter.js index a571517..208dda5 100644 --- a/source/threejs/threeimporter.js +++ b/source/threejs/threeimporter.js @@ -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;