Swizzle color

Anyone know color code if use swizzle patch
On spark ar?

I’m not sure what you mean, but the available tokens for swizzle are x, y, z, w, r, g, b, a, 0, and 1. The output will be a vector with a size that matches the number of tokens used (e.g. xy01 will be vec4, xy will be vec2). The letter tokens rgba are analogous to xyzw - it’s just a matter of convention (sometimes it’s easier to understand color operations if you use rgba)

1 Like

I don’t really understand what you mean. But if you want to learn about swizzle behaviour, Eddy Adam has a great explanation and tutorial for it here:

Scroll down until around 1/2 of the page. It’s in the Micro Tuts section.

2 Likes