xeolabs / scenejs

An extensible WebGL-based 3D engine. This is an archived project.
https://xeolabs.github.io/scenejs/
Other
649 stars 165 forks source link

Add billboarding to picking shaders #435

Open xeolabs opened 8 years ago

xeolabs commented 8 years ago

I've added billboarding to the vertex draw shader, but forgot to add it to the picking vertex shader.

Therefore, attempts to pick billboarded objects will sometimes miss, because picking is quietly done on a non-rotated version of the target mesh, while a rotated version is rendered.