I am attempting to set Custom render pick attributes via a GLSL Mat, but seem unable to do so.
I’ve read through https://docs.derivative.ca/Write_a_GLSL_Material and noticed that this struct:
flat int instanceId;
can be modified after calling TDWritePickingValues(); like this:
vTDPickVert.sopSpacePosition = newPosition;
vTDPickVert.worldSpacePosition = uTDMats[TDCameraIndex()].world * vec4(newPosition, 1.0);
vTDPickVert.camSpacePosition = uTDMats[TDCameraIndex()].worldCam * vec4(newPosition, 1.0);
However I can’t find a syntax or convention for addressing those custom attributes…
Is it possible to address them at all as in, they are simply not documented? or is this not possible through GLSL materials?
I should note, I am able to still pass custom attributes through the glslMAT via the point SOP pre shader… that works just fine, so the data is getting through, I just can’t set it manually.