comparing methods of creating skybox material in three.js

别等时光非礼了梦想. 提交于 2019-12-01 09:07:06

You have a conceptual misunderstanding.

For WebGL, both methods involve shaders. MeshBasicMaterial has a vertex and fragment shader that has been written for you for convenience.

The primary difference between the two examples is the second example uses a cube map for input.

You would use that approach if you were already using the same cube map as an environment map in a reflective material, for example.

The first example is just another way to render a skybox, and is the only one of the two that will work with CanvasRenderer.

three.js r.58

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!