本篇文章將要繪制一個具有動畫效果的galaxy贬芥,關(guān)于galaxy的實現(xiàn)可以參考之前的這篇筆記 Galaxy[http://www.reibang.com/p/3087edb...
![240](https://upload.jianshu.io/users/upload_avatars/2063702/fc31914b-22ee-497c-903b-771c9839ba57.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
本篇文章將要繪制一個具有動畫效果的galaxy贬芥,關(guān)于galaxy的實現(xiàn)可以參考之前的這篇筆記 Galaxy[http://www.reibang.com/p/3087edb...
We're going to create raging sea only by using shaders Set up Replace the mesh and repl...
What is a shader?Program written in GLSLSent to the GPUPosition each vertex of a geomet...
添加物體和燈光 Load the model, increase its scale, rotate it Load the environment map, 我們加載的是立...
Environment Mapas a backgroundas reflectionas lighting Set up Model添加model后向下移動camera就能...
A raycaster[https://threejs.org/docs/index.html?q=ray#api/zh/core/Raycaster] can cast a...
Formats - many 3D models formats, each one responding a problem Popular 3D Models Forma...
We are going to use three.js to achieve physics effects, likes bounce、friction慨菱、bouncing...
how to use three.js as a background of a classic HTML page make the camera to translate...
這篇筆記的最終實現(xiàn)目標(biāo)挟炬,是創(chuàng)建一個星系鸥滨,如下圖: Set up Create a generateGalaxy function and call it, 我們用這個方法生成...
Particles can be used to create stars, smoke, rain, dust, fire, etc. You can have thous...
基礎(chǔ)場景:some lights、no shadow谤祖、a Dat.GUI panel HouseFloor/** * House**/// Floorconst floor...
最終效果如上圖所示爵赵,實現(xiàn)一個3D Text,使用了MeshMatcapMaterial泊脐、FontLoader空幻、TorusGeometry等 首先創(chuàng)建一個帶有坐標(biāo)系的基礎(chǔ)場景 ...
The dark shadow in the back of the objects are called core shadows, we will going to do...
環(huán)境光 AmbientLight[https://threejs.org/docs/index.html?q=light#api/zh/lights/AmbientLight...
Materials[https://threejs.org/docs/index.html?q=materi#api/zh/constants/Materials] are ...
TexureLoader[https://threejs.org/docs/index.html?q=textureL#api/zh/loaders/TextureLoade...
composed of vertices(point coordinates in 3D spaces) and faces(triangles that join thos...
Fit in the viewport Handle pixel ratiowindow.devicePixelRatio設(shè)備像素比, 有時候我們看到的渲染是不清晰的,有鋸齒...