import: matrices.yaml
styles:
    geometry-rotation:
        doc:
            author: 
                name: Patricio Gonzalez Vivo
                twitter: patriciogv
            version: 0.0.1
            tangram-version: 0.0.7
            licence: MIT
            description: |
                Allows to rotate the camera while zooming between `ROTATION_IN` and `ROTATION_OUT`.
            examples:
                tilt:
                    url: https://tangrams.github.io/tangram-sandbox/styles/tilt.yaml
                    img: https://tangrams.github.io/tangram-sandbox/styles/tilt.png
                    lines: 13-19
                oblivion:
                    url: https://tangrams.github.io/tangram-sandbox/styles/oblivion.yaml
                    img: https://tangrams.github.io/tangram-sandbox/styles/oblivion.png
                    lines: 88-94
        mix: geometry-matrices
        animated: true
        shaders:
            defines:
                ROTATION_SPEED: 0.1
                ROTATION_RANGE: PI
                ROTATION: sin(u_time*ROTATION_SPEED)*ROTATION_RANGE
            blocks:
                position: |
                    position.xyz = rotateZ3D(ROTATION) * position.xyz;
                    