#To reply to this myself - you have to jump through some hoops!

1 messages ยท Page 1 of 1 (latest)

distant jolt
#

The takeaway is you can read existing '_DiffusionProfileHash' and '_DiffusionProfileAsset' variables but you have to do a binary cast to and from an int to ensure vital bits aren't lost in truncation.

snow charm
#

I think we never tried ourselves to change the diffusion profile at runtime on a material.
I would just recommand to swap the material to an other one :/

distant jolt
#

Not an option for what I'm doing, it's middleware tools creating materials and running in editor. But hey, it works ๐Ÿ™‚

snow charm
#

Hum, if it's in editor, it might be easier then, let me dig a bit in the code ....

snow charm
#
distant jolt
#

Thanks, that's a great help - I'd already done a lot of similar stuff on the GUID front but that's going to be a lot more reliable ๐Ÿ™‚

distant jolt
snow charm