- Real-Time 3D Graphics with WebGL 2
- Farhad Ghayour Diego Cantor
- 41字
- 2021-06-10 19:43:07
Changing attribute to in
In WebGL 1 with ESSL 100, you might have this:
attribute vec4 aVertexPosition;
attribute vec3 aVertexNormal;
In WebGL 2 with ESSL 300, this becomes the following:
in vec4 aVertexPosition;
in vec3 aVertexNormal;