摘要:
这一小节主要学习材质 材质用于为几何物理模型的每个可见像素添加颜色。 Materials are used to put a color on each visible pixel of the geometries. 决定每个像素颜色的算法是在程序中编写的,称为着色器。 Three.js 具有许多 阅读全文
摘要:
这一小节学习THREE.js中的物理模型。 什么是geometry?(英文解释,翻译为中文就看不懂了,直接看英语吧) Composed of vertices (point coordinates in 3D spaces)and faces (triangles that join those v 阅读全文
摘要:
这一小节主要学习动画。 在JavaScript中的动画,其实就是渲染一帧,停顿一会儿,再渲染一帧。所以我们需要在每一帧都更新物体和重新渲染。 调用window.requestAnimationFrame();函数来实现。 The purpose of requestAnimationFrame is 阅读全文