Home » Personal collection » Acorn hard disk » apps » QRT » Images/Mirror/QRT

Images/Mirror/QRT

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn hard disk » apps » QRT
Filename: Images/Mirror/QRT
Read OK:
File size: 103D bytes
Load address: 0000
Exec address: 0000
File contents
{**************************************************

    QRT source for mirrored surface demo.
    Demonstrates arbitrary reflection
    characteristics.

    - Steve Koren   11 Jun 88

 **************************************************}


FILE_NAME = Mirror.RAW

{ *********   Some pattern definitions ********** }

PATTERN ( x_size = 60,                 { ** Checkered pattern ** }
          y_size = 60,
          name   = CHECK,
          RECTANGLE (
            start_x = 0,
            start_y = 0,
            end_x   = 30,
            end_y   = 30,
            diff    = (.1,1.0,.1),
          )
          RECTANGLE (
            start_x = 30,
            start_y = 30,
            end_x   = 60,
            end_y   = 60,
            diff    = (.1,1.0,.1),
          )
        )

PATTERN ( x_size = 60,                 { ** Checkered pattern ** }
          y_size = 60,                 { ** mirrored surfaces ** }
          name   = MIRROR_CHECK,       { ** (red)             ** }
          RECTANGLE (
            start_x = 0,
            start_y = 0,
            end_x   = 30,
            end_y   = 30,
            diff    = (.2,.1,.1),
            mirror  = (.7,.2,.2)
          )
          RECTANGLE (
            start_x = 30,
            start_y = 30,
            end_x   = 60,
            end_y   = 60,
            diff    = (.2,.1,.1),
            mirror  = (.7,.2,.2)
          )
        )

PATTERN ( name   = MIRROR_STRIPE_V     { ** blue striped mirror ** }
          x_size = 60
          y_size = 60
          RECTANGLE (
            start_x = 0
            start_y = 0
            end_x   = 30
            end_y   = 60
            diff    = (.1, .1, .2)
            mirror  = (.2, .2, .9)
          )
        )

PATTERN ( name   = MIRROR_STRIPE_H     { ** striped mirror ** }
          x_size = 60
          y_size = 60
          RECTANGLE (
            start_x = 0
            start_y = 0
            end_x   = 60
            end_y   = 30
            diff    = (.1, .1, .1)
            mirror  = (.45, .45, .45)
          )
        )

{ *********************  OBJECTS  ********************* }

{ ** ground (standard checkered type) ** }

PARALLELOGRAM ( loc  = (  -10000, 0,  -10000),  { ** big! ** }
                v1   = (20000, 0,    0),
                v2   = (  0, 0, 20000),

                diff = (  .8, .8, 0),
                pattern = CHECK
                xmult = 2
                ymult = 2
              )

{ ** 3 balls (red, green, blue)  - all are shiny ** }

BEGIN_BBOX

    SPHERE ( loc     = (150, 25, 0)
             radius  = 20
             diff    = (.9, .1, .1)  { ** red ** }
             amb     = (.4, .4, .4)
             reflect = .60
             sreflect= 20
           )

    SPHERE ( loc     = (150, 75, 0)
             radius  = 20
             diff    = (.1, .9, .1)  { ** green ** }
             amb     = (.4, .4, .4)
             reflect = .60
             sreflect= 20
           )

    SPHERE ( loc     = (150, 125, 0)
             radius  = 20
             diff    = (.3, .3, .9)  { ** blue ** }
             amb     = (.4, .4, .4)
             reflect = .60
             sreflect= 20
           )

END_BBOX

{ ** mirrored parallelograms ** }

PARALLELOGRAM ( loc  = (150,  0,  100)
                v1   = (100,  0, -100)
                v2   = (0,  180,    0)

                diff   = (.1, .1, .1)
                mirror = (.7, .7, .7)
                pattern= MIRROR_CHECK
              )

PARALLELOGRAM ( loc  = (250, 0, -40)
                v1   = (-100, 0, -100)
                v2   = (0,  180,  0)

                diff   = (.1, .1, .1)
                mirror = (.8, .8, .8)
                pattern= MIRROR_STRIPE_H
                xmult  = .5
                ymult  = .5
              )

{ ** An observer ** }

OBSERVER ( loc    = (-20, 85 -40)
           lookat = (200, 50, -15)
         )

{ ** Lights (but not Bud lights) ** }

LAMP ( loc = (20, 140, 20),
       radius = 5,
       dist = 140
     )

LAMP ( loc = (240, 75, -5),
       radius = 5,
       dist = 70
     )

SKY  ( horiz  = (.3, .3, .75),
       zenith = (.1, .1, .50),
       dither = 4
     )

FOC_LENGTH = 55


00000000  7b 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |{***************|
00000010  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
*
00000030  2a 2a 2a 0a 0a 20 20 20  20 51 52 54 20 73 6f 75  |***..    QRT sou|
00000040  72 63 65 20 66 6f 72 20  6d 69 72 72 6f 72 65 64  |rce for mirrored|
00000050  20 73 75 72 66 61 63 65  20 64 65 6d 6f 2e 0a 20  | surface demo.. |
00000060  20 20 20 44 65 6d 6f 6e  73 74 72 61 74 65 73 20  |   Demonstrates |
00000070  61 72 62 69 74 72 61 72  79 20 72 65 66 6c 65 63  |arbitrary reflec|
00000080  74 69 6f 6e 0a 20 20 20  20 63 68 61 72 61 63 74  |tion.    charact|
00000090  65 72 69 73 74 69 63 73  2e 0a 0a 20 20 20 20 2d  |eristics...    -|
000000a0  20 53 74 65 76 65 20 4b  6f 72 65 6e 20 20 20 31  | Steve Koren   1|
000000b0  31 20 4a 75 6e 20 38 38  0a 0a 20 2a 2a 2a 2a 2a  |1 Jun 88.. *****|
000000c0  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
*
000000e0  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 7d 0a 0a  |*************}..|
000000f0  0a 46 49 4c 45 5f 4e 41  4d 45 20 3d 20 4d 69 72  |.FILE_NAME = Mir|
00000100  72 6f 72 2e 52 41 57 0a  0a 7b 20 2a 2a 2a 2a 2a  |ror.RAW..{ *****|
00000110  2a 2a 2a 2a 20 20 20 53  6f 6d 65 20 70 61 74 74  |****   Some patt|
00000120  65 72 6e 20 64 65 66 69  6e 69 74 69 6f 6e 73 20  |ern definitions |
00000130  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 20 7d 0a 0a 50 41  |********** }..PA|
00000140  54 54 45 52 4e 20 28 20  78 5f 73 69 7a 65 20 3d  |TTERN ( x_size =|
00000150  20 36 30 2c 20 20 20 20  20 20 20 20 20 20 20 20  | 60,            |
00000160  20 20 20 20 20 7b 20 2a  2a 20 43 68 65 63 6b 65  |     { ** Checke|
00000170  72 65 64 20 70 61 74 74  65 72 6e 20 2a 2a 20 7d  |red pattern ** }|
00000180  0a 20 20 20 20 20 20 20  20 20 20 79 5f 73 69 7a  |.          y_siz|
00000190  65 20 3d 20 36 30 2c 0a  20 20 20 20 20 20 20 20  |e = 60,.        |
000001a0  20 20 6e 61 6d 65 20 20  20 3d 20 43 48 45 43 4b  |  name   = CHECK|
000001b0  2c 0a 20 20 20 20 20 20  20 20 20 20 52 45 43 54  |,.          RECT|
000001c0  41 4e 47 4c 45 20 28 0a  20 20 20 20 20 20 20 20  |ANGLE (.        |
000001d0  20 20 20 20 73 74 61 72  74 5f 78 20 3d 20 30 2c  |    start_x = 0,|
000001e0  0a 20 20 20 20 20 20 20  20 20 20 20 20 73 74 61  |.            sta|
000001f0  72 74 5f 79 20 3d 20 30  2c 0a 20 20 20 20 20 20  |rt_y = 0,.      |
00000200  20 20 20 20 20 20 65 6e  64 5f 78 20 20 20 3d 20  |      end_x   = |
00000210  33 30 2c 0a 20 20 20 20  20 20 20 20 20 20 20 20  |30,.            |
00000220  65 6e 64 5f 79 20 20 20  3d 20 33 30 2c 0a 20 20  |end_y   = 30,.  |
00000230  20 20 20 20 20 20 20 20  20 20 64 69 66 66 20 20  |          diff  |
00000240  20 20 3d 20 28 2e 31 2c  31 2e 30 2c 2e 31 29 2c  |  = (.1,1.0,.1),|
00000250  0a 20 20 20 20 20 20 20  20 20 20 29 0a 20 20 20  |.          ).   |
00000260  20 20 20 20 20 20 20 52  45 43 54 41 4e 47 4c 45  |       RECTANGLE|
00000270  20 28 0a 20 20 20 20 20  20 20 20 20 20 20 20 73  | (.            s|
00000280  74 61 72 74 5f 78 20 3d  20 33 30 2c 0a 20 20 20  |tart_x = 30,.   |
00000290  20 20 20 20 20 20 20 20  20 73 74 61 72 74 5f 79  |         start_y|
000002a0  20 3d 20 33 30 2c 0a 20  20 20 20 20 20 20 20 20  | = 30,.         |
000002b0  20 20 20 65 6e 64 5f 78  20 20 20 3d 20 36 30 2c  |   end_x   = 60,|
000002c0  0a 20 20 20 20 20 20 20  20 20 20 20 20 65 6e 64  |.            end|
000002d0  5f 79 20 20 20 3d 20 36  30 2c 0a 20 20 20 20 20  |_y   = 60,.     |
000002e0  20 20 20 20 20 20 20 64  69 66 66 20 20 20 20 3d  |       diff    =|
000002f0  20 28 2e 31 2c 31 2e 30  2c 2e 31 29 2c 0a 20 20  | (.1,1.0,.1),.  |
00000300  20 20 20 20 20 20 20 20  29 0a 20 20 20 20 20 20  |        ).      |
00000310  20 20 29 0a 0a 50 41 54  54 45 52 4e 20 28 20 78  |  )..PATTERN ( x|
00000320  5f 73 69 7a 65 20 3d 20  36 30 2c 20 20 20 20 20  |_size = 60,     |
00000330  20 20 20 20 20 20 20 20  20 20 20 20 7b 20 2a 2a  |            { **|
00000340  20 43 68 65 63 6b 65 72  65 64 20 70 61 74 74 65  | Checkered patte|
00000350  72 6e 20 2a 2a 20 7d 0a  20 20 20 20 20 20 20 20  |rn ** }.        |
00000360  20 20 79 5f 73 69 7a 65  20 3d 20 36 30 2c 20 20  |  y_size = 60,  |
00000370  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 7b  |               {|
00000380  20 2a 2a 20 6d 69 72 72  6f 72 65 64 20 73 75 72  | ** mirrored sur|
00000390  66 61 63 65 73 20 2a 2a  20 7d 0a 20 20 20 20 20  |faces ** }.     |
000003a0  20 20 20 20 20 6e 61 6d  65 20 20 20 3d 20 4d 49  |     name   = MI|
000003b0  52 52 4f 52 5f 43 48 45  43 4b 2c 20 20 20 20 20  |RROR_CHECK,     |
000003c0  20 20 7b 20 2a 2a 20 28  72 65 64 29 20 20 20 20  |  { ** (red)    |
000003d0  20 20 20 20 20 20 20 20  20 2a 2a 20 7d 0a 20 20  |         ** }.  |
000003e0  20 20 20 20 20 20 20 20  52 45 43 54 41 4e 47 4c  |        RECTANGL|
000003f0  45 20 28 0a 20 20 20 20  20 20 20 20 20 20 20 20  |E (.            |
00000400  73 74 61 72 74 5f 78 20  3d 20 30 2c 0a 20 20 20  |start_x = 0,.   |
00000410  20 20 20 20 20 20 20 20  20 73 74 61 72 74 5f 79  |         start_y|
00000420  20 3d 20 30 2c 0a 20 20  20 20 20 20 20 20 20 20  | = 0,.          |
00000430  20 20 65 6e 64 5f 78 20  20 20 3d 20 33 30 2c 0a  |  end_x   = 30,.|
00000440  20 20 20 20 20 20 20 20  20 20 20 20 65 6e 64 5f  |            end_|
00000450  79 20 20 20 3d 20 33 30  2c 0a 20 20 20 20 20 20  |y   = 30,.      |
00000460  20 20 20 20 20 20 64 69  66 66 20 20 20 20 3d 20  |      diff    = |
00000470  28 2e 32 2c 2e 31 2c 2e  31 29 2c 0a 20 20 20 20  |(.2,.1,.1),.    |
00000480  20 20 20 20 20 20 20 20  6d 69 72 72 6f 72 20 20  |        mirror  |
00000490  3d 20 28 2e 37 2c 2e 32  2c 2e 32 29 0a 20 20 20  |= (.7,.2,.2).   |
000004a0  20 20 20 20 20 20 20 29  0a 20 20 20 20 20 20 20  |       ).       |
000004b0  20 20 20 52 45 43 54 41  4e 47 4c 45 20 28 0a 20  |   RECTANGLE (. |
000004c0  20 20 20 20 20 20 20 20  20 20 20 73 74 61 72 74  |           start|
000004d0  5f 78 20 3d 20 33 30 2c  0a 20 20 20 20 20 20 20  |_x = 30,.       |
000004e0  20 20 20 20 20 73 74 61  72 74 5f 79 20 3d 20 33  |     start_y = 3|
000004f0  30 2c 0a 20 20 20 20 20  20 20 20 20 20 20 20 65  |0,.            e|
00000500  6e 64 5f 78 20 20 20 3d  20 36 30 2c 0a 20 20 20  |nd_x   = 60,.   |
00000510  20 20 20 20 20 20 20 20  20 65 6e 64 5f 79 20 20  |         end_y  |
00000520  20 3d 20 36 30 2c 0a 20  20 20 20 20 20 20 20 20  | = 60,.         |
00000530  20 20 20 64 69 66 66 20  20 20 20 3d 20 28 2e 32  |   diff    = (.2|
00000540  2c 2e 31 2c 2e 31 29 2c  0a 20 20 20 20 20 20 20  |,.1,.1),.       |
00000550  20 20 20 20 20 6d 69 72  72 6f 72 20 20 3d 20 28  |     mirror  = (|
00000560  2e 37 2c 2e 32 2c 2e 32  29 0a 20 20 20 20 20 20  |.7,.2,.2).      |
00000570  20 20 20 20 29 0a 20 20  20 20 20 20 20 20 29 0a  |    ).        ).|
00000580  0a 50 41 54 54 45 52 4e  20 28 20 6e 61 6d 65 20  |.PATTERN ( name |
00000590  20 20 3d 20 4d 49 52 52  4f 52 5f 53 54 52 49 50  |  = MIRROR_STRIP|
000005a0  45 5f 56 20 20 20 20 20  7b 20 2a 2a 20 62 6c 75  |E_V     { ** blu|
000005b0  65 20 73 74 72 69 70 65  64 20 6d 69 72 72 6f 72  |e striped mirror|
000005c0  20 2a 2a 20 7d 0a 20 20  20 20 20 20 20 20 20 20  | ** }.          |
000005d0  78 5f 73 69 7a 65 20 3d  20 36 30 0a 20 20 20 20  |x_size = 60.    |
000005e0  20 20 20 20 20 20 79 5f  73 69 7a 65 20 3d 20 36  |      y_size = 6|
000005f0  30 0a 20 20 20 20 20 20  20 20 20 20 52 45 43 54  |0.          RECT|
00000600  41 4e 47 4c 45 20 28 0a  20 20 20 20 20 20 20 20  |ANGLE (.        |
00000610  20 20 20 20 73 74 61 72  74 5f 78 20 3d 20 30 0a  |    start_x = 0.|
00000620  20 20 20 20 20 20 20 20  20 20 20 20 73 74 61 72  |            star|
00000630  74 5f 79 20 3d 20 30 0a  20 20 20 20 20 20 20 20  |t_y = 0.        |
00000640  20 20 20 20 65 6e 64 5f  78 20 20 20 3d 20 33 30  |    end_x   = 30|
00000650  0a 20 20 20 20 20 20 20  20 20 20 20 20 65 6e 64  |.            end|
00000660  5f 79 20 20 20 3d 20 36  30 0a 20 20 20 20 20 20  |_y   = 60.      |
00000670  20 20 20 20 20 20 64 69  66 66 20 20 20 20 3d 20  |      diff    = |
00000680  28 2e 31 2c 20 2e 31 2c  20 2e 32 29 0a 20 20 20  |(.1, .1, .2).   |
00000690  20 20 20 20 20 20 20 20  20 6d 69 72 72 6f 72 20  |         mirror |
000006a0  20 3d 20 28 2e 32 2c 20  2e 32 2c 20 2e 39 29 0a  | = (.2, .2, .9).|
000006b0  20 20 20 20 20 20 20 20  20 20 29 0a 20 20 20 20  |          ).    |
000006c0  20 20 20 20 29 0a 0a 50  41 54 54 45 52 4e 20 28  |    )..PATTERN (|
000006d0  20 6e 61 6d 65 20 20 20  3d 20 4d 49 52 52 4f 52  | name   = MIRROR|
000006e0  5f 53 54 52 49 50 45 5f  48 20 20 20 20 20 7b 20  |_STRIPE_H     { |
000006f0  2a 2a 20 73 74 72 69 70  65 64 20 6d 69 72 72 6f  |** striped mirro|
00000700  72 20 2a 2a 20 7d 0a 20  20 20 20 20 20 20 20 20  |r ** }.         |
00000710  20 78 5f 73 69 7a 65 20  3d 20 36 30 0a 20 20 20  | x_size = 60.   |
00000720  20 20 20 20 20 20 20 79  5f 73 69 7a 65 20 3d 20  |       y_size = |
00000730  36 30 0a 20 20 20 20 20  20 20 20 20 20 52 45 43  |60.          REC|
00000740  54 41 4e 47 4c 45 20 28  0a 20 20 20 20 20 20 20  |TANGLE (.       |
00000750  20 20 20 20 20 73 74 61  72 74 5f 78 20 3d 20 30  |     start_x = 0|
00000760  0a 20 20 20 20 20 20 20  20 20 20 20 20 73 74 61  |.            sta|
00000770  72 74 5f 79 20 3d 20 30  0a 20 20 20 20 20 20 20  |rt_y = 0.       |
00000780  20 20 20 20 20 65 6e 64  5f 78 20 20 20 3d 20 36  |     end_x   = 6|
00000790  30 0a 20 20 20 20 20 20  20 20 20 20 20 20 65 6e  |0.            en|
000007a0  64 5f 79 20 20 20 3d 20  33 30 0a 20 20 20 20 20  |d_y   = 30.     |
000007b0  20 20 20 20 20 20 20 64  69 66 66 20 20 20 20 3d  |       diff    =|
000007c0  20 28 2e 31 2c 20 2e 31  2c 20 2e 31 29 0a 20 20  | (.1, .1, .1).  |
000007d0  20 20 20 20 20 20 20 20  20 20 6d 69 72 72 6f 72  |          mirror|
000007e0  20 20 3d 20 28 2e 34 35  2c 20 2e 34 35 2c 20 2e  |  = (.45, .45, .|
000007f0  34 35 29 0a 20 20 20 20  20 20 20 20 20 20 29 0a  |45).          ).|
00000800  20 20 20 20 20 20 20 20  29 0a 0a 7b 20 2a 2a 2a  |        )..{ ***|
00000810  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
00000820  2a 2a 20 20 4f 42 4a 45  43 54 53 20 20 2a 2a 2a  |**  OBJECTS  ***|
00000830  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
00000840  2a 2a 20 7d 0a 0a 7b 20  2a 2a 20 67 72 6f 75 6e  |** }..{ ** groun|
00000850  64 20 28 73 74 61 6e 64  61 72 64 20 63 68 65 63  |d (standard chec|
00000860  6b 65 72 65 64 20 74 79  70 65 29 20 2a 2a 20 7d  |kered type) ** }|
00000870  0a 0a 50 41 52 41 4c 4c  45 4c 4f 47 52 41 4d 20  |..PARALLELOGRAM |
00000880  28 20 6c 6f 63 20 20 3d  20 28 20 20 2d 31 30 30  |( loc  = (  -100|
00000890  30 30 2c 20 30 2c 20 20  2d 31 30 30 30 30 29 2c  |00, 0,  -10000),|
000008a0  20 20 7b 20 2a 2a 20 62  69 67 21 20 2a 2a 20 7d  |  { ** big! ** }|
000008b0  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
000008c0  20 76 31 20 20 20 3d 20  28 32 30 30 30 30 2c 20  | v1   = (20000, |
000008d0  30 2c 20 20 20 20 30 29  2c 0a 20 20 20 20 20 20  |0,    0),.      |
000008e0  20 20 20 20 20 20 20 20  20 20 76 32 20 20 20 3d  |          v2   =|
000008f0  20 28 20 20 30 2c 20 30  2c 20 32 30 30 30 30 29  | (  0, 0, 20000)|
00000900  2c 0a 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |,..             |
00000910  20 20 20 64 69 66 66 20  3d 20 28 20 20 2e 38 2c  |   diff = (  .8,|
00000920  20 2e 38 2c 20 30 29 2c  0a 20 20 20 20 20 20 20  | .8, 0),.       |
00000930  20 20 20 20 20 20 20 20  20 70 61 74 74 65 72 6e  |         pattern|
00000940  20 3d 20 43 48 45 43 4b  0a 20 20 20 20 20 20 20  | = CHECK.       |
00000950  20 20 20 20 20 20 20 20  20 78 6d 75 6c 74 20 3d  |         xmult =|
00000960  20 32 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  | 2.             |
00000970  20 20 20 79 6d 75 6c 74  20 3d 20 32 0a 20 20 20  |   ymult = 2.   |
00000980  20 20 20 20 20 20 20 20  20 20 20 29 0a 0a 7b 20  |           )..{ |
00000990  2a 2a 20 33 20 62 61 6c  6c 73 20 28 72 65 64 2c  |** 3 balls (red,|
000009a0  20 67 72 65 65 6e 2c 20  62 6c 75 65 29 20 20 2d  | green, blue)  -|
000009b0  20 61 6c 6c 20 61 72 65  20 73 68 69 6e 79 20 2a  | all are shiny *|
000009c0  2a 20 7d 0a 0a 42 45 47  49 4e 5f 42 42 4f 58 0a  |* }..BEGIN_BBOX.|
000009d0  0a 20 20 20 20 53 50 48  45 52 45 20 28 20 6c 6f  |.    SPHERE ( lo|
000009e0  63 20 20 20 20 20 3d 20  28 31 35 30 2c 20 32 35  |c     = (150, 25|
000009f0  2c 20 30 29 0a 20 20 20  20 20 20 20 20 20 20 20  |, 0).           |
00000a00  20 20 72 61 64 69 75 73  20 20 3d 20 32 30 0a 20  |  radius  = 20. |
00000a10  20 20 20 20 20 20 20 20  20 20 20 20 64 69 66 66  |            diff|
00000a20  20 20 20 20 3d 20 28 2e  39 2c 20 2e 31 2c 20 2e  |    = (.9, .1, .|
00000a30  31 29 20 20 7b 20 2a 2a  20 72 65 64 20 2a 2a 20  |1)  { ** red ** |
00000a40  7d 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 61  |}.             a|
00000a50  6d 62 20 20 20 20 20 3d  20 28 2e 34 2c 20 2e 34  |mb     = (.4, .4|
00000a60  2c 20 2e 34 29 0a 20 20  20 20 20 20 20 20 20 20  |, .4).          |
00000a70  20 20 20 72 65 66 6c 65  63 74 20 3d 20 2e 36 30  |   reflect = .60|
00000a80  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 73 72  |.             sr|
00000a90  65 66 6c 65 63 74 3d 20  32 30 0a 20 20 20 20 20  |eflect= 20.     |
00000aa0  20 20 20 20 20 20 29 0a  0a 20 20 20 20 53 50 48  |      )..    SPH|
00000ab0  45 52 45 20 28 20 6c 6f  63 20 20 20 20 20 3d 20  |ERE ( loc     = |
00000ac0  28 31 35 30 2c 20 37 35  2c 20 30 29 0a 20 20 20  |(150, 75, 0).   |
00000ad0  20 20 20 20 20 20 20 20  20 20 72 61 64 69 75 73  |          radius|
00000ae0  20 20 3d 20 32 30 0a 20  20 20 20 20 20 20 20 20  |  = 20.         |
00000af0  20 20 20 20 64 69 66 66  20 20 20 20 3d 20 28 2e  |    diff    = (.|
00000b00  31 2c 20 2e 39 2c 20 2e  31 29 20 20 7b 20 2a 2a  |1, .9, .1)  { **|
00000b10  20 67 72 65 65 6e 20 2a  2a 20 7d 0a 20 20 20 20  | green ** }.    |
00000b20  20 20 20 20 20 20 20 20  20 61 6d 62 20 20 20 20  |         amb    |
00000b30  20 3d 20 28 2e 34 2c 20  2e 34 2c 20 2e 34 29 0a  | = (.4, .4, .4).|
00000b40  20 20 20 20 20 20 20 20  20 20 20 20 20 72 65 66  |             ref|
00000b50  6c 65 63 74 20 3d 20 2e  36 30 0a 20 20 20 20 20  |lect = .60.     |
00000b60  20 20 20 20 20 20 20 20  73 72 65 66 6c 65 63 74  |        sreflect|
00000b70  3d 20 32 30 0a 20 20 20  20 20 20 20 20 20 20 20  |= 20.           |
00000b80  29 0a 0a 20 20 20 20 53  50 48 45 52 45 20 28 20  |)..    SPHERE ( |
00000b90  6c 6f 63 20 20 20 20 20  3d 20 28 31 35 30 2c 20  |loc     = (150, |
00000ba0  31 32 35 2c 20 30 29 0a  20 20 20 20 20 20 20 20  |125, 0).        |
00000bb0  20 20 20 20 20 72 61 64  69 75 73 20 20 3d 20 32  |     radius  = 2|
00000bc0  30 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 64  |0.             d|
00000bd0  69 66 66 20 20 20 20 3d  20 28 2e 33 2c 20 2e 33  |iff    = (.3, .3|
00000be0  2c 20 2e 39 29 20 20 7b  20 2a 2a 20 62 6c 75 65  |, .9)  { ** blue|
00000bf0  20 2a 2a 20 7d 0a 20 20  20 20 20 20 20 20 20 20  | ** }.          |
00000c00  20 20 20 61 6d 62 20 20  20 20 20 3d 20 28 2e 34  |   amb     = (.4|
00000c10  2c 20 2e 34 2c 20 2e 34  29 0a 20 20 20 20 20 20  |, .4, .4).      |
00000c20  20 20 20 20 20 20 20 72  65 66 6c 65 63 74 20 3d  |       reflect =|
00000c30  20 2e 36 30 0a 20 20 20  20 20 20 20 20 20 20 20  | .60.           |
00000c40  20 20 73 72 65 66 6c 65  63 74 3d 20 32 30 0a 20  |  sreflect= 20. |
00000c50  20 20 20 20 20 20 20 20  20 20 29 0a 0a 45 4e 44  |          )..END|
00000c60  5f 42 42 4f 58 0a 0a 7b  20 2a 2a 20 6d 69 72 72  |_BBOX..{ ** mirr|
00000c70  6f 72 65 64 20 70 61 72  61 6c 6c 65 6c 6f 67 72  |ored parallelogr|
00000c80  61 6d 73 20 2a 2a 20 7d  0a 0a 50 41 52 41 4c 4c  |ams ** }..PARALL|
00000c90  45 4c 4f 47 52 41 4d 20  28 20 6c 6f 63 20 20 3d  |ELOGRAM ( loc  =|
00000ca0  20 28 31 35 30 2c 20 20  30 2c 20 20 31 30 30 29  | (150,  0,  100)|
00000cb0  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00000cc0  20 76 31 20 20 20 3d 20  28 31 30 30 2c 20 20 30  | v1   = (100,  0|
00000cd0  2c 20 2d 31 30 30 29 0a  20 20 20 20 20 20 20 20  |, -100).        |
00000ce0  20 20 20 20 20 20 20 20  76 32 20 20 20 3d 20 28  |        v2   = (|
00000cf0  30 2c 20 20 31 38 30 2c  20 20 20 20 30 29 0a 0a  |0,  180,    0)..|
00000d00  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000d10  64 69 66 66 20 20 20 3d  20 28 2e 31 2c 20 2e 31  |diff   = (.1, .1|
00000d20  2c 20 2e 31 29 0a 20 20  20 20 20 20 20 20 20 20  |, .1).          |
00000d30  20 20 20 20 20 20 6d 69  72 72 6f 72 20 3d 20 28  |      mirror = (|
00000d40  2e 37 2c 20 2e 37 2c 20  2e 37 29 0a 20 20 20 20  |.7, .7, .7).    |
00000d50  20 20 20 20 20 20 20 20  20 20 20 20 70 61 74 74  |            patt|
00000d60  65 72 6e 3d 20 4d 49 52  52 4f 52 5f 43 48 45 43  |ern= MIRROR_CHEC|
00000d70  4b 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |K.              |
00000d80  29 0a 0a 50 41 52 41 4c  4c 45 4c 4f 47 52 41 4d  |)..PARALLELOGRAM|
00000d90  20 28 20 6c 6f 63 20 20  3d 20 28 32 35 30 2c 20  | ( loc  = (250, |
00000da0  30 2c 20 2d 34 30 29 0a  20 20 20 20 20 20 20 20  |0, -40).        |
00000db0  20 20 20 20 20 20 20 20  76 31 20 20 20 3d 20 28  |        v1   = (|
00000dc0  2d 31 30 30 2c 20 30 2c  20 2d 31 30 30 29 0a 20  |-100, 0, -100). |
00000dd0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 76  |               v|
00000de0  32 20 20 20 3d 20 28 30  2c 20 20 31 38 30 2c 20  |2   = (0,  180, |
00000df0  20 30 29 0a 0a 20 20 20  20 20 20 20 20 20 20 20  | 0)..           |
00000e00  20 20 20 20 20 64 69 66  66 20 20 20 3d 20 28 2e  |     diff   = (.|
00000e10  31 2c 20 2e 31 2c 20 2e  31 29 0a 20 20 20 20 20  |1, .1, .1).     |
00000e20  20 20 20 20 20 20 20 20  20 20 20 6d 69 72 72 6f  |           mirro|
00000e30  72 20 3d 20 28 2e 38 2c  20 2e 38 2c 20 2e 38 29  |r = (.8, .8, .8)|
00000e40  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00000e50  20 70 61 74 74 65 72 6e  3d 20 4d 49 52 52 4f 52  | pattern= MIRROR|
00000e60  5f 53 54 52 49 50 45 5f  48 0a 20 20 20 20 20 20  |_STRIPE_H.      |
00000e70  20 20 20 20 20 20 20 20  20 20 78 6d 75 6c 74 20  |          xmult |
00000e80  20 3d 20 2e 35 0a 20 20  20 20 20 20 20 20 20 20  | = .5.          |
00000e90  20 20 20 20 20 20 79 6d  75 6c 74 20 20 3d 20 2e  |      ymult  = .|
00000ea0  35 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |5.              |
00000eb0  29 0a 0a 7b 20 2a 2a 20  41 6e 20 6f 62 73 65 72  |)..{ ** An obser|
00000ec0  76 65 72 20 2a 2a 20 7d  0a 0a 4f 42 53 45 52 56  |ver ** }..OBSERV|
00000ed0  45 52 20 28 20 6c 6f 63  20 20 20 20 3d 20 28 2d  |ER ( loc    = (-|
00000ee0  32 30 2c 20 38 35 20 2d  34 30 29 0a 20 20 20 20  |20, 85 -40).    |
00000ef0  20 20 20 20 20 20 20 6c  6f 6f 6b 61 74 20 3d 20  |       lookat = |
00000f00  28 32 30 30 2c 20 35 30  2c 20 2d 31 35 29 0a 20  |(200, 50, -15). |
00000f10  20 20 20 20 20 20 20 20  29 0a 0a 7b 20 2a 2a 20  |        )..{ ** |
00000f20  4c 69 67 68 74 73 20 28  62 75 74 20 6e 6f 74 20  |Lights (but not |
00000f30  42 75 64 20 6c 69 67 68  74 73 29 20 2a 2a 20 7d  |Bud lights) ** }|
00000f40  0a 0a 4c 41 4d 50 20 28  20 6c 6f 63 20 3d 20 28  |..LAMP ( loc = (|
00000f50  32 30 2c 20 31 34 30 2c  20 32 30 29 2c 0a 20 20  |20, 140, 20),.  |
00000f60  20 20 20 20 20 72 61 64  69 75 73 20 3d 20 35 2c  |     radius = 5,|
00000f70  0a 20 20 20 20 20 20 20  64 69 73 74 20 3d 20 31  |.       dist = 1|
00000f80  34 30 0a 20 20 20 20 20  29 0a 0a 4c 41 4d 50 20  |40.     )..LAMP |
00000f90  28 20 6c 6f 63 20 3d 20  28 32 34 30 2c 20 37 35  |( loc = (240, 75|
00000fa0  2c 20 2d 35 29 2c 0a 20  20 20 20 20 20 20 72 61  |, -5),.       ra|
00000fb0  64 69 75 73 20 3d 20 35  2c 0a 20 20 20 20 20 20  |dius = 5,.      |
00000fc0  20 64 69 73 74 20 3d 20  37 30 0a 20 20 20 20 20  | dist = 70.     |
00000fd0  29 0a 0a 53 4b 59 20 20  28 20 68 6f 72 69 7a 20  |)..SKY  ( horiz |
00000fe0  20 3d 20 28 2e 33 2c 20  2e 33 2c 20 2e 37 35 29  | = (.3, .3, .75)|
00000ff0  2c 0a 20 20 20 20 20 20  20 7a 65 6e 69 74 68 20  |,.       zenith |
00001000  3d 20 28 2e 31 2c 20 2e  31 2c 20 2e 35 30 29 2c  |= (.1, .1, .50),|
00001010  0a 20 20 20 20 20 20 20  64 69 74 68 65 72 20 3d  |.       dither =|
00001020  20 34 0a 20 20 20 20 20  29 0a 0a 46 4f 43 5f 4c  | 4.     )..FOC_L|
00001030  45 4e 47 54 48 20 3d 20  35 35 0a 0a 0a           |ENGTH = 55...|
0000103d