p@Cd = set(v@P.x, v@P.y, v@P.z, relbbox(0, v@P).y);
p@Cd = clamp(v@Cd, {0, 0, 0, 0}, {1, 1, 1, 1});
Inspecting the generated GLTF file (a .glb) I see that COLOR_0 is still set to VEC3 so the alpha didn't make the journey successfully.
How do I export vertex alpha with the ROP GLTF SOP? I don't see anything about vertex color or vertex alpha mentioned on either its help page(1) or the overall GLTF help page(2). So far I've tried exporting these values as point attribs, vertex attribs and prim attribs but nothing has worked.
Thanks!
(0) https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html [registry.khronos.org]
(1) https://www.sidefx.com/docs/houdini/nodes/sop/rop_gltf.html [www.sidefx.com]
(2) https://www.sidefx.com/docs/houdini/io/gltf.html [www.sidefx.com]