Hi this is a simple question.
I'm trying to read and understand a shader function which makes use of vec3<f32>
variable types.
I don't understand what is that .zzzz
key for:
var myvar: vec3<f32> = vec3<f32>(1.3, 3.3, 3.3);
myvar.zzzz; // ??
myvar.xy; // ??
I can only understand myvar.x
, myvar.y
, myvar.z
, but what happens when you combine or repeat those keys?
I can't yet find it in the official documentation unfortunately.
Thanks