package Ġc ga . exercise . components . map Generator Ċ Ċ import Ġc ga . exercise . components . Color Ċ import Ġc ga . exercise . components . geometry . Render Category Ċ import Ġc ga . exercise . components . geometry . at mosphere . At mosphere Ċ import Ġc ga . exercise . components . geometry . at mosphere . At mosphere Material Ċ import Ġc ga . exercise . components . geometry . material . Material Ċ import Ġc ga . exercise . components . geometry . material . Overlay Material Ċ import Ġc ga . exercise . components . texture . Texture 2 D Ċ import Ġorg . lwjgl . opengl . GL 1 1 Ċ Ċ class ĠMap Generator Materials Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĊĠĠĠĠĠĠĠ Ġ// Material ĠSun ĊĠĠĠĠĠĠĠ Ġval Ġsun Material Ġ= ĠMaterial ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / sun / sun _ diff . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / sun / sun _ diff . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / sun / sun _ diff . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠ 3 2 f ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġval Ġmoon Material Ġ= ĠMaterial ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / moon _ diff . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / moon _ emit . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / moon _ diff . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠ 3 2 f ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġval Ġearth Material Ġ= ĠOverlay Material ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / earth _ diff . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / earth _ emit . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / earth _ spec . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / earth _ clouds . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠ 6 4 f ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġval Ġven us Material Ġ= ĠOverlay Material ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / ven us _ diff . jpg ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / mars _ emit . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / ven us _ diff . jpg ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / ven us _ storm s 2 . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠ 6 4 f ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġ// Material ĠM ars ĊĠĠĠĠĠĠĠ Ġval Ġm ars Material Ġ= ĠMaterial ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / mars _ diff . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / mars _ emit . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / mars _ diff . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠ 6 4 f ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġ// Material ĠU ran us ĊĠĠĠĠĠĠĠ Ġval Ġur an us Material Ġ= ĠMaterial ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / uran us _ diff . jpg ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / mars _ emit . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / uran us _ diff . jpg ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠ 5 0 f ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġ// Material ĠM ars ĊĠĠĠĠĠĠĠ Ġval Ġsat urn Material Ġ= ĠMaterial ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / sat urn _ diff . jpg ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / mars _ emit . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / sat urn _ diff . jpg ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠ 6 4 f ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġval Ġj upiter Material Ġ= ĠMaterial ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / jupiter _ diff . jpg ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / mars _ emit . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / jupiter _ diff . jpg ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠ 3 2 f ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġval Ġmer kur Material Ġ= ĠMaterial ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / mer kur _ diff . jpg ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / mars _ emit . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / mer kur _ diff . jpg ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ 3 2 f ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġval Ġne pt un Material Ġ= ĠMaterial ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / ne pt un _ diff . jpg ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / mars _ emit . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / ne pt un _ diff . jpg ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ 3 2 f ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġval Ġf ik t iv 1 Material Ġ= ĠMaterial ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / f ik t iv 1 _ diff . jpg ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / mars _ emit . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / f ik t iv 1 _ diff . jpg ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ 3 2 f ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġval Ġf ik t iv 2 Material Ġ= ĠMaterial ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / f ik t iv 2 _ diff . jpg ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / mars _ emit . png ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠTexture 2 D (" assets / textures / plan ets / f ik t iv 2 _ diff . jpg ", true ). set Tex Params ( ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ REPEAT , ĠGL 1 1 . GL _ LINEAR _ MIP MAP _ LINEAR , ĠGL 1 1 . GL _ LINEAR ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ 3 2 f ĊĠĠĠĠĠĠĠ Ġ) ĊĊĊĠĠĠĠĠĠĠ Ġval ĠPlan et Materials Ġ= ĠlistOf ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġearth Material , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġm ars Material , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġven us Material , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġur an us Material , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġsat urn Material , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġj upiter Material , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmer kur Material , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġne pt un Material , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġf ik t iv 1 Material , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġf ik t iv 2 Material ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġval Ġsun At mosphere Material Ġ= ĠAt mosphere Material ( Texture 2 D (" assets / textures / sun / sun _ diff . png ", true ), ĠColor ( 0 . 6 f , 0 . 4 f , 0 . 4 f , Ġ 0 . 4 f )) ĊĠĠĠĠĠĠĠ Ġval Ġbasic At mosphere Texture Ġ= ĠTexture 2 D (" assets / textures / plan ets / at mosphere _ basic . png ", true ) ĊĊĊĊĊĠĠĠ Ġ} ĊĊĊĊĊ Ċ }