We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi ,
I get this weird warning when I try to load an object
three.module.js?8012:45254 THREE.MeshPhongMaterial: .shading has been removed. Use the boolean .flatShading instead.
Am I doing something wrong here ?
My code
class Marker extends THREE.Object3D { constructor() { super(); const textureLoader = new THREE.TextureLoader(); const texture = textureLoader.load( "https://storage.googleapis.com/zenly-web/footsteps/FlyingSatellite.png" ); // load obj model const loader = new OBJLoader(); loader.load( "https://storage.googleapis.com/zenly-web/footsteps/FlyingSatellite.obj", object => { object.traverse(child => { if (child instanceof THREE.Mesh) { // child.material.map = texture; child.scale.set(0.002, 0.002, 0.002); } }); this.add(object); } );
Thanks ! 👍
The text was updated successfully, but these errors were encountered:
Is normal, trying to remove that annoying warning in #19 pull request. Is just a warning, you can ignore it.
Sorry, something went wrong.
Any news on that? Still getting the Warning
No branches or pull requests
Hi ,
I get this weird warning when I try to load an object
Am I doing something wrong here ?
My code
Thanks ! 👍
The text was updated successfully, but these errors were encountered: