This is not really a bug but close to it (so I put it here).
This morning I was looking at how to set ‘always’ for depthFunction on a PBR Material. It appeared this solution matched my issue with alpha/depth sorting of two spheres I want to turn into a holographic FX.
- First, went to the doc, searched for ‘depthFunction’ and found mostly only results from the API.
Went to BackgroundMaterial and (first problem) it’s still marked as ‘inherited from BackgroundMaterial’. Which is not logical since I am in class ‘BackgroundMaterial’
It says the value is a number, so I assumed that in order of display, the number should be going from 0(default), incremented by 1 for the other options. So I tried 1, 2, … nothing. I finally found from recording from the PG that the value for always is 519? May be not even constant, I don’t know, but this value worked for me. So, the issue here is that I found no explanation in the doc for this (regarding materials)
From the API, you can open PG examples which can be handy. However in this case of searching ‘depthFunction’, I have been throwed 2968 links which are obviously not something you want. I’m not sure what they are exactly. Didn’t spend more time investigating, I’ll let you do that. But I’m pretty sure we don’t want them here.