Showing posts with label Quaternion. Show all posts
Showing posts with label Quaternion. Show all posts

Thursday, 12 April 2012

Quaternion rotation shader

After writing yesterday's post I wondered how easy it would be to use the mathematics in a shader. This would be a natural way to extend my cross product shader, replacing the simple product in that with a more general geometric product.