// *************************************************************************
// LUNEX (Lunar Explorer) for POV-Ray
// Revised: 2021-Aug-22-Sun
// *************************************************************************
// THIS VERSION IS NOT BACKWARDS COMPATIBLE WITH ANY PREVIOUS VERSIONS AND,
// BY DEFAULT, IS DESIGNED TO BE FULLY SELF-CONTAINED INITIALLY.
//
// Author   : Jay Tanner
// Language : POV-Ray v3.7.0
//
// License:
// This POV-Ray source code is released under the provisions of the Creative
// Commons Attribution-ShareAlike 4.0 International license.
//
// https://creativecommons.org/licenses/by-sa/4.0/legalcode
//
// ---------------------------------------------------------------------------
// POV-Ray Version
   #version 3.7;

// BASIC INFORMATION
//
// NOTE: For this program, all distances are in statute miles and all angles
//       are expressed in degrees with the default phase angle referring to
//       the geocentric phase as viewed from Earth.
//
// 1 AU (Astronomical Unit) = Mean distance to sun = 92955807 miles
// Lunar radius = 1079 miles
// Earth radius = 3963 miles
// Mean Earth/Moon center/center distance = 238856 miles
// Mean Earth/Moon surf/surf distance = (238856 - 3963 - 1079) = 233814 miles
// Mean Moon center to Earth surface distance = 238856 - 3963 = 234893 miles
// ---------------------------------------------------------------------------
// MAPS
//
// Select ONLY ONE of these available surface texture maps from the list.
//
// Copy/Paste selected map declaration as the first declaration line
// in the scene definition panel settings below.
//
// #declare SurfaceMap = "MAPS/lunar-surface-map.png"; // Default surface
// #declare SurfaceMap = "MAPS/lunar-surface-DEM.png"; // Default DEM
//
// #declare SurfaceMap = "MAPS/lunar-surface-map-w-5x5-grid.png";
// #declare SurfaceMap = "MAPS/lunar-surface-map-w-10x10-grid.png";
//
// #declare SurfaceMap = "MAPS/lunar-altimetry-map.png";
// #declare SurfaceMap = "MAPS/lunar-altimetry-map-w-5x5-grid.png";
//
// #declare SurfaceMap = "MAPS/lunar-gravity-map.png";
// #declare SurfaceMap = "MAPS/lunar-gravity-map-w-5x5-grid.png";
//
// #declare SurfaceMap = "MAPS/5x5-grid-only.png";
// #declare SurfaceMap = "MAPS/10x10-grid-only.png";
// #declare SurfaceMap = "MAPS/selenographic-orientation-grid.png";

// ===========================================================================
// START OF SCENE DEFINITION PANEL             START OF SCENE DEFINITION PANEL
//
// DESCRIPTION:
// This is a rendering of the hidden far-side of the moon.  We are on the
// other side of the moon at mean distance looking back.

// ----------------------------------------
// SET PATH TO SELECTED SURFACE TEXTURE MAP

  #declare SurfaceMap = "MAPS/lunar-surface-map.png";

// ---------------------------------------------------------------------------
// SET RENDER MODE   1=FAST 2D BUMP MAP  or  2=SLOWER FULL 3D ISOSURFACE

  #declare RenderMode = 2;

// ---------------------------------------------------------------
// SET CAMERA VIEW COORDINATES, DISTANCE, LOCATION, ZOOM FACTOR
// DEFAULT = GEOCENTRIC VIEW

// Camera selenographic coordinates at center of view.
  #declare CamLat  = +00.0;  // -S/+N
  #declare CamLon  = +180.0; // -W/+E

// Camera distance in miles from center of moon.
  #declare CamDist = 238856;

// Move Camera.
  #declare CamMoveLRX = +0000; // -Left / +Right
  #declare CamMoveUDY = +0000; // -Down / +Up

// Rotate Camera.       +Clockwise
  #declare CamRotAngZ = +000.0;

// Camera Zoom Factor.   1=100%   Default=1
  #declare CamZoom = 1.000;

// -------------------------------------------------------------------
// SET RELATIVE LUNAR PHASE ANGLE AND EQUATORIAL ALTITUDE AND ROTATION
// 0=NM   90=FQ   180=FM   270=LQ   360=0=NM  Default=180

  #declare PhaseAng = 180.0;
  #declare PhaseAlt = +0.0; // Default=0  Range: -/+ 1.5

// Lunar Equatorial Rotation Angle    +Clockwise
  #declare MoonRotAngY = +000.0;

// ---------------------------------------------------
// SET SUNLIGHT / EARTHSHINE / SURFACE AMBIENCE LEVELS

  #declare SunlightLevel = 1.000; // Solar brightness level   Default=1
  #declare EarthshineLevel = 2;   // Earthshine level n/256   Default=2
  #declare SurfAmbiLevel = 0.000; // Surface ambience level   Default=0

// -------------------------------------------------------------
// SET OPTIONAL LOCATION MARKER SWITCH STATE AND RELATED OPTIONS
// Default pointer location = Tranquility base coordinates.

  #declare MarkSwitch = "OFF";     // Show location marker    Default=OFF
  #declare MarkLat    = +0.67409;  // Marker latitude
  #declare MarkLon    = +23.47298; // Marker longitude
  #declare MarkWidth  = 3.0;       // Marker top width        Default=3.0
  #declare MarkAmbi   = 0.025;     // Marker ambience level   Default=0.025
  #declare MarkColor  = rgb<255/255, 255/255, 000/255>; //    Marker RGB

// ----------------------------------------------------------
// SET OPTIONAL SWITCH TO APPLY 3D SHADED RELIEF - Default=ON

  #declare ReliefSwitch = "ON";

// ----------------------------------------------------------
// SET OPTIONAL -S/+N POLAR AXES DISPLAY SWITCH - Default=OFF

  #declare PolarAxSwitch = "OFF";

// ----------------------------------------------------------------------
// SET OPTIONAL AUTO-FIELD-OF-VIEW CONTROL SWITCH. THIS SETTING IS MAINLY
// TO ATTEMPT TO AUTOMATICALLY ADJUST FOR VERY CLOSE-UP CAM/EYE VIEWS AND
// REDUCE PIXELATION. Default=OFF

  #declare AutoFOVSwitch = "OFF";

// END OF SCENE DEFINITION PANEL                END OF SCENE DEFINITION PANEL
// ==========================================================================
//
// PROCEED WITH RENDERING THE SCENE ACCORDING TO THE ABOVE SETTINGS.
  #include "INC/LUNEX.inc"

// END OF PROGRAM SCRIPT

