Program Listing for File host_device_shared.hpp

Program Listing for File host_device_shared.hpp#

Return to documentation for file (Resources/Shaders/host_device/host_device_shared.hpp)

#ifndef GLOBALS_HOST_DEVICE
#define GLOBALS_HOST_DEVICE

#include "host_device_shared_vars.hpp"

// ====================================================================
// DERIVED CONSTANTS - Computed from base limits in host_device_shared_vars.hpp
// ====================================================================

// Special material IDs for internal use
const int SKYBOX_MATERIAL_ID = MAX_MATERIALS;
const int CLOUDS_MATERIAL_ID = MAX_MATERIALS + 1;

// Cascaded shadow mapping
const int NUM_CASCADES = 3;

// Point lights
const int MAX_POINT_LIGHTS = 1;

// Math constants
#ifndef PI_DEF
#define PI_DEF
const float PI = 3.14159265359f;
#endif

// Noise
const int NUM_CELL_POSITIONS = 5;

#endif// !GLOBALS_HOST_DEVICE