Attribute Definitions

Given that attributes are provided as inputs to shaders, in GLSL 300 ES, the attribute qualifier is removed. For example, with WebGL's GLSL 100, you might have the following:

attribute vec3 aVertexNormal;
attribute vec4 aVertexPosition;

In GLSL 300 ES, this would be as follows:

in vec3 aVertexNormal;
in vec4 aVertexPosition;
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.174.156