7#include <DirectXMath.h>
41 bool HasRainGrid(uint64_t revision,
int cube,
int u,
int v)
const
56 const D3D11_VIEWPORT& viewport,
const Matrix& view,
const Matrix& projection,
const Vector& planetEye,
66 Microsoft::WRL::ComPtr<ID3D11Texture2D>
texture;
67 Microsoft::WRL::ComPtr<ID3D11ShaderResourceView>
srv;
73 Microsoft::WRL::ComPtr<ID3D11Device>
device;
76 Microsoft::WRL::ComPtr<ID3D11ShaderResourceView>
rainView;
110 std::string
status=
"native cloud renderer not initialized";
HRESULT(WINAPI *CUniBuffer::_ScriptApplyDigitSubstitution)(const SCRIPT_DIGITSUBSTITUTE *
bool OrganicOrbitAvailable() const
bool OrganicFlightAvailable() const
double weatherBlendSeconds
HRESULT Render(ID3D11DeviceContext *context, ID3D11RenderTargetView *scene, const SceneDepth11 &depth, const D3D11_VIEWPORT &viewport, const Matrix &view, const Matrix &projection, const Vector &planetEye, const CloudVolume::Parameters ¶ms, const Vector &sunlight, const Color &light, const Color &ambient, const Color &airglow=Color(.125f,.375f,.25f, 1), const Color &horizonHaze=Color(0, 0, 0, 0), const Color &atmosphereHaze=Color(0, 0, 0, 0), const Color &nightVisionGain=Color(1, 1, 1, 0))
HRESULT Fail(const char *step, HRESULT hr)
void SetHeadlights(const std::vector< Headlight > &lights)
Microsoft::WRL::ComPtr< ID3D11Device > device
CloudWeather::Frame WeatherFrame()
Microsoft::WRL::ComPtr< ID3D11ShaderResourceView > localBaseView
bool HasRainGrid(uint64_t revision, int cube, int u, int v) const
bool clearAirOptimizationEnabled
CloudLightning::Diagnostic lightningDiagnostic
void SetLocalLightning(const Vector &position, const Color &color, float radiusKm)
const Parameters11 & Parameters() const
void SetGroundLighting(const CloudVolume::GroundLighting &lighting)
HRESULT PrepareWeather(ID3D11DeviceContext *context)
CloudLightning::System lightning
bool SetLightningDiagnostic(bool enabled)
std::vector< Headlight > headlights
CloudWeather::Frame weatherFrame
void UpdateLightning(const CloudVolume::Parameters ¶meters, double elapsed, const CloudVolume::Point &observer={})
bool OrganicReady() const
Microsoft::WRL::ComPtr< ID3D11Texture2D > groundTexture
void SetFogBeamsEnabled(bool value)
CloudWeather::MapPtr desiredWeather
CloudVolume::GroundLighting groundLighting
Microsoft::WRL::ComPtr< ID3D11ShaderResourceView > rainView
bool FogBeamsEnabled() const
void SetLightningEnabled(bool value)
std::vector< WeatherTexture > weatherTextures
CloudClearance11 clearance
void UpdateWeather(const CloudWeather::MapPtr &map, double elapsed)
CloudWeather::Frame boundWeather
DirectX::XMFLOAT4X4 Matrix
Microsoft::WRL::ComPtr< ID3D11ShaderResourceView > noise
static constexpr unsigned MaxHeadlights
void SetRainGrid(const RainGrid *grid)
const std::string & InitializationStatus() const
CloudBaseWeather::GridPtr uploadedLocalBase
void SetFogDensity(float value)
HRESULT Initialize(ID3D11Device *device, const std::filesystem::path &shaderDirectory={})
std::atomic< bool > historyResetPending
float ClearAirRadius() const
std::filesystem::path shaderDirectory
Microsoft::WRL::ComPtr< ID3D11Texture2D > localBaseTexture
Microsoft::WRL::ComPtr< ID3D11Texture2D > rainTexture
void ReleaseSizeDependent()
Microsoft::WRL::ComPtr< ID3D11ShaderResourceView > ground
void SetClearAirOptimizationEnabled(bool value)
HRESULT PrepareResources(ID3D11DeviceContext *context)
Microsoft::WRL::ComPtr< ID3D11ShaderResourceView > blackWeather
bool OrganicAvailable() const
static constexpr unsigned MaxLights
std::shared_ptr< const Grid > GridPtr
constexpr uint32_t DefaultSeed
std::shared_ptr< const Map > MapPtr
DirectX::XMFLOAT4X4 Matrix
LandingLights::Profile profile
std::array< Color, 4096 > cells
Microsoft::WRL::ComPtr< ID3D11ShaderResourceView > srv
Microsoft::WRL::ComPtr< ID3D11Texture2D > texture