API:
https://developer.mozilla.org/zh-CN/docs/Web/API/WebGL_API
WebGL 3D Perspective:
https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-3d-orthographic.html#toc
https://webglfundamentals.org/webgl/lessons/webgl-3d-perspective.html
webgl-examples:
https://github.com/mdn/webgl-examples/
一个使用方便的 JavaScript处理向量和矩阵运算的库。sylvester:
http://sylvester.jcoglan.com/docs.html
性能监视器(监视FPS):
https://github.com/mrdoob/stats.js
动画引擎
https://github.com/tweenjs/tween.js
顶点着色器根据需要, 也可以完成其他工作。例如,决定哪个包含
texel面部纹理的坐标,可以应用于顶点;通过法线来确定应用到顶点的光照因子等。依此类推,这些信息可以存储在
变化(varying)或
属性(attributes)属性中,以便与片段着色器共享
复制代码
1
2
3
4
5
6
7
8
9
10
11
12<script id="shader-vs" type="x-shader/x-vertex"> attribute vec3 aVertexPosition; attribute vec4 aVertexColor; uniform mat4 uMVMatrix; uniform mat4 uPMatrix; varying lowp vec4 vColor; void main(void) { gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0); vColor = aVertexColor; } </script>
等价于:
复制代码
1
2
3
4
5
6
7
8
9
10
11
12` attribute vec3 aVertexPosition; attribute vec4 aVertexColor; uniform mat4 uMVMatrix; uniform mat4 uPMatrix; varying lowp vec4 vColor; void main(void) { gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0); vColor = aVertexColor; } `
等价于:
复制代码
1
2
3
4
5
6
7
8
9
10
11
12[ "attribute vec3 aVertexPosition;", "attribute vec4 aVertexColor;", "uniform mat4 uMVMatrix;", "uniform mat4 uPMatrix;", "varying lowp vec4 vColor;", "void main(void) {", "gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);", "vColor = aVertexColor;", "}" ].join( "n" );
转载于:https://www.cnblogs.com/guxingzhe/p/8425382.html
最后
以上就是傲娇萝莉最近收集整理的关于webgl学习路线总结的全部内容,更多相关webgl学习路线总结内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复