Commit b751f966 authored by Stoll's avatar Stoll
Browse files

Fix: Texture loaded correctly

parent 26edf131
...@@ -42,7 +42,7 @@ export class GLTFModel implements IRenderable { ...@@ -42,7 +42,7 @@ export class GLTFModel implements IRenderable {
textureUrl, textureUrl,
(texture) => { (texture) => {
//texture.encoding = THREE.sRGBEncoding; //texture.encoding = THREE.sRGBEncoding;
//texture.flipY = false; texture.flipY = false;
gltf.scene.traverse((child) => { gltf.scene.traverse((child) => {
if ((child as THREE.Mesh).isMesh) { if ((child as THREE.Mesh).isMesh) {
const mesh = child as THREE.Mesh; const mesh = child as THREE.Mesh;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment