- Real-Time 3D Graphics with WebGL 2
- Farhad Ghayour Diego Cantor
- 41字
- 2025-04-04 15:56:23
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;