How to Scale and Rotate with Functions?

Started by WAS, April 22, 2021, 03:48:28 pm

Previous topic - Next topic


April 22, 2021, 03:48:28 pm Last Edit: April 22, 2021, 03:52:10 pm by WAS
Howdy doody! I have a question for the math wizards of the Terragen community!

I know how to translate with functions (constant displacement warping on Z, Y, or Z), but how can I scale something with a scalar based function? And how can I rotate with scalar based functions?

Scalar based as in can define the scale/rotation with scalars.

I really do hope Matt can add a updates Transform Input/Merge shader that can accept a vector for translate, rotate, and scale. This would be so amazing. Would be super easy to add a Constant Vector with any settings you want, and also dissect the vector to modulate it any way you need.


So I found this wiki which seems to have what i need for scaling but unsure how to translate it.