Пример #1
0
        private void jitter_position(int i)
        {
            float [] [] jitter = Jitter.J8;
            float       x      = jitter [i] [0];
            float       y      = jitter [i] [1];
            double      wh     = (double)window.width / (double)window.height;

            AntiAlias.perspective(gl, window.width, window.height,
                                  50.0, wh, 1.0, 15.0, x, y, 0.0, 0.0, 1.0);
        }
Пример #2
0
        private void jitter_position(int i)
        {
            /* The focal point is at z = 5.0, so the gold teapot will stay in
             * focus. The amount of jitter is adjusted by the magnitude of the
             * `AntiAlias.perspective' jitter; in this example, 0.33. In this
             * example, the teapots are drawn eight times. See `Jitter'.
             */

            float [] [] jitter = Jitter.J8;
            float       x      = 0.33f * jitter [i] [0];
            float       y      = 0.33f * jitter [i] [1];
            double      wh     = (double)window.width / (double)window.height;

            AntiAlias.perspective(gl, window.width, window.height,
                                  45.0, wh, 1.0, 15.0, 0.0, 0.0, x, y, 5.0);
        }