Transforms are snippets that can be attached to events (resize, mouse_scroll, etc.) and inserted into other shader code using hooks.
- This example shows a simple Projection/Model/View transform that is equivalent to the deprecated GL API (1.0).
- The panzoom transform allow to translate and scale an object in the window space coordinate (2D).
- The trackball transform simulates a virtual trackball (3D) that can rotate around the origin using intuitive mouse gestures.
- This examples shows and orthographic projection where coordinates are manipulated in pixels.
- This example shows a simple rotating quad using the
- Simple linear scale that maps point from a domain to a given range.
- Power scales are similar to linear scales, except there’s an exponential transform that is applied to the input domain value before the output range value is computed.
- Log scales are similar to linear scales, except there’s a logarithmic transform that is applied to the input domain value before the output range value is computed.
- This example show how to use different scales on x, y, or z.
- Simple polar projection.
- Simple composition of a polar projection and a log scale on the radius.