카테고리 없음

[자바 스크립트] three.js의 객체에 텍스처를 추가하는 방법은 무엇입니까?

필살기쓰세요 2021. 2. 28. 22:00

이것도 추가해야했습니다

var texture = new THREE.Texture (); var loader = new THREE.ImageLoader ();

    loader.addEventListener( 'load', function ( event ) {
            Texture1.image = event.content;
                        Texture1.needsUpdate = true;
                            } );
                            
                                loader.load( 'http://simpletruthsforhealthyliving.com/js/earth.jpg' );
                                


출처
https://stackoverflow.com/questions/39969995