简体   繁体   中英

what does THREE refer to in Three.js

What is the THREE in three.js . For example, when we create a scene or any object we qualify the name like new THREE.Scene() or new THREE.WebGLRenderer() What does THREE refer to??

THREE refers to the THREE base object which contains all of the THREE stuff like geometry, materials, methods, and well every THREE thing really.

This is like calling your homie THREE who knows how to do all the THREE things, but only THREE things. You couldn't be like, "THREE.createWebpage()" because THREE doesn't know how to do that.

THREE is named in three.js which was first released by Mr. Doob.

If this still seems confusing I would recommend you look into what an object is in programming. here is an explanation.

The base object of three.js - you can see the source here .

三

THREE stores all the properties and methods that make the library useful.

你只需在 Chrome 控制台中输入“THREE”,你就会得到你想知道的

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM