I want to know the location of the camera-oriented source code of the billboard, but I can’t find it after looking for a long time. Can anyone explain it to me?
Can you be more specific what you’re looking for in regards to the “camera-oriented” billboard code? For example the eyeOffset
and other properties related to the camera are handled in BillboardCollection.js
.
Thank you for your reply。I will try my best to explain my problem。
As marked in the picture above, “attribute vec2 direction”, I don’t know where it came from. And where is the calculation method of this direction. “compressedAttribute0” I saw this, but I don’t see write direction from billboardCollection.js file. Looking forward to your reply
I’m honestly not sure. I believe all the buffer writes are being performed in BillboardCollection.js
.
I do see the comment // Instancing requires one non-instanced attribute.
above where the direction attribute is added, but I also don’t see the write.