Hi,
I’m newbie with shaders and I didn’t use matrix for a while… (I’m not Neo )
I want meshes face to the camera only on 2 axis
I know it’s like billboard and I can take a look on THREE.Sprite but I’m not able to make it working…
It’s like the prisoner849’s example, a lookat but with a rotation only on X and Z axis. Sorry my description was wrong about axis, I update it.
But I want to use shaders avoiding some loops in the AnimationLoop
Really nice example, I like this pixel art style
You understood my need despite my bad description, but I want to use shaders to manage it easily during scene or objects loading and remove/dispose, avoiding management of many arrays for my usecases. And for optimization too I think
Just recalled about this topic, surfing @hofk’s collection of examples.
Seems it works with InstancedMesh and slightly modified MeshBasicMaterial (modification), in which you pass a quaternion in uniform: https://jsfiddle.net/prisoner849/g8j24z0n/