Accessing POP Attributes in glslMAT

I’ve tried several different approaches to get POP attributes into a glslMAT. With SOPs I can usually just declare them as inputs (ie: in vec3 someAttr).

This doesn’t seem to work with POP data. Is there another way to do this or is it something that isn’t available at this point?

I’m on an M3 MBP with latest OS.

Thanks :slight_smile:

Hi Florian,

So you need to declare them on the attributes page of the MAT, and you can then access them with
TDAttrib_NameOfAttrib()

see attached toe

MATCustomAttribPOP.toe (6.2 KB)

internally they are bounds as SSBO, and the TDAttrib_NameOfAttrib() also have TDAttrib_NameOfAttrib(uint id), meaning you can access the attribute for any element, not just the current one.

Ahhh, there it is! I thought I event went looking for an attribute param, but I guess I must have been sleep-deprived or something to miss the “Attributes” page. :roll_eyes:

Thank you Vincent!

Here’s my implementation. It’s sort of a tentacle monster thing. :slight_smile:
shub-niggurath.toe (8.8 KB)

1 Like

You’re welcome! Fun tentacle monster, thanks for sharing!