RayGuo
RayGuo
As we know, the latest version of react is [0.14.3](https://facebook.github.io/react/downloads.html). And you need use react.js and react-dom.js to develop your app. "React.render" is also needs to be replaced by "ReactDOM.render"....
 上篇文章简单介绍了WebGL的一些相关概念、现状以及工作原理,没有涉及到具体编码,本文将使用WebGL的相关技术来实现一个简单的效果示例,从而让大家了解WebGL编程的基本流程和关键操作。最后,还介绍了一些WebGL的库和框架,恰当的使用这些第三方框架,可以大大提高我们的工作效率。 ### 开发流程 WebGL的开发过程主要包括以下几个步骤: #### 1.准备容器 WebGL要在页面上执行相关的渲染,必须依赖一个特定的容器,在HTML5中,使用的是Canvas作为容器。 ``` html Your browser doesn't appear to support the HTML5 canvas element. ``` 如上所示,我们在HTML中添加了一个canvas元素,并且设置了onload事件作为入口,后续的所有业务逻辑都会在start函数中进行处理。 ``` javascript //WebGL全局变量 var gl; function start() {...
 ### 先来看看WebGL的官方介绍: > WebGL - OpenGL ES 2.0 for the Web WebGL -- Web上的OpenGL ES 2.0 > WebGL is a cross-platform, royalty-free web standard for a low-level 3D graphics...