Original Post
Hi,
I'm wondering if I can extract component of vec4 (this is 4 numbers in fact), for example third number. It will optimize my memory usage. Now as vertex shader attributes I use two vec4: (x,y,z,1.0) and (1.0,1.0,1.0,s). If I can extract components of vec4 I can use (x,y,z,s) vector as attribute and extract components for calculations.
I'm wondering if I can extract component of vec4 (this is 4 numbers in fact), for example third number. It will optimize my memory usage. Now as vertex shader attributes I use two vec4: (x,y,z,1.0) and (1.0,1.0,1.0,s). If I can extract components of vec4 I can use (x,y,z,s) vector as attribute and extract components for calculations.