Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
HFT-informatics-weekend
AR - Urban Planner
Commits
b751f966
Commit
b751f966
authored
Oct 12, 2025
by
Stoll
Browse files
Fix: Texture loaded correctly
parent
26edf131
Changes
1
Hide whitespace changes
Inline
Side-by-side
webxr-cube/src/model/GLTFModel.ts
View file @
b751f966
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment