#Shadergraph - Rotate Billboards in 2 Axis

1 messages · Page 1 of 1 (latest)

astral inlet
#

Hey guys, I'm trying to figure out a way to rotate some billboard quads in 2 axis, x and y (ignoring rotation around the z axis, essentially). I've followed some forum posts online without much success and most of the content seems to be tailored towards only rotation around 1 axis.

I'm pretty new to shadergraph so I'm probably way out of my depth here, does anybody have an idea of how I would approach this?

astral inlet
#

as far as I can tell, the red bit is where the rotation is actually happening

#

but not sure how I can actually limit the rotation, I've attempted to split out the transformation matrix into a separate vector4 node and then link it back to the system, but it seems to return something completely different

valid trellis
astral inlet
#

heya Mao, thanks for the link - I'll take a look! I've also been pointed to using particles which might be the more performant option and it includes a way to disable rotation already!

#

(the clouds in the screenshot were just quads), it was always eventually going to be a particle but didn't know the system alrady had this option

#

I will still end up using it as I think I'll need to use some kind of LOD approach where the particle systems are replaced with billboards in the distance

valid trellis