Rise
The Vieneo Province
Loading...
Searching...
No Matches
CloudVolumeRenderer.h
Go to the documentation of this file.
1#pragma once
2#include "BeamProfile.h"
6{
7public:
10 HRESULT Initialize(Rendering::RenderDevice* device){return device ? renderer.Initialize(device->Native()) : E_INVALIDARG;}
14 bool Ready()const{return renderer.Ready();}
15 bool OrganicReady()const{return renderer.OrganicReady();}
17 const std::string& InitializationStatus()const{return renderer.InitializationStatus();}
18 uint32_t Seed()const{return renderer.Seed();}
20 void UpdateWeather(const CloudWeather::MapPtr& value,double elapsed){renderer.UpdateWeather(value,elapsed);}
23 void UpdateLightning(const CloudVolume::Parameters& value,double elapsed,const CloudVolume::Point& observer={}){renderer.UpdateLightning(value,elapsed,observer);}
24 bool SetLightningDiagnostic(bool enabled){return renderer.SetLightningDiagnostic(enabled);}
25 void SetLocalLightning(const RiseMath::Vector3& position,const RiseMath::Color& color,float radius)
26 {renderer.SetLocalLightning(position,{color.r,color.g,color.b,color.a},radius);}
27 void SetLocalLightning(const RiseMath::Vector3& position,const RiseMath::Color& color,float radius,const RiseMath::Vector3& ground)
28 {renderer.SetLocalLightning(position,{color.r,color.g,color.b,color.a},radius,ground);}
29 void SetHeadlights(const std::vector<Headlight>& lights);
30 HRESULT Render(Rendering::RenderDevice* device,const RiseMath::Matrix& view,const RiseMath::Matrix& projection,
31 const RiseMath::Vector3& eye,const CloudVolume::Parameters& parameters,const RiseMath::Vector3& sunlight,
32 const RiseMath::Color& light,const RiseMath::Color& ambient,const RiseMath::Color& airglow=RiseMath::Color(.125f,.375f,.25f,1),
33 const RiseMath::Vector4& horizon=RiseMath::Vector4(0,0,0,0),const RiseMath::Vector4& atmosphere=RiseMath::Vector4(0,0,0,0),
34 const RiseMath::Vector4& nightVisionGain=RiseMath::Vector4(1,1,1,0));
36 const RiseMath::Matrix& world,UINT segments,float physicalScale=1);
37 HRESULT RenderRain(Rendering::RenderDevice* device,const RiseMath::Matrix& world,UINT drops);
39private:
41};
HRESULT(WINAPI *CUniBuffer::_ScriptApplyDigitSubstitution)(const SCRIPT_DIGITSUBSTITUTE *
Rendering::CloudRenderer11 renderer
void SetLocalLightning(const RiseMath::Vector3 &position, const RiseMath::Color &color, float radius, const RiseMath::Vector3 &ground)
HRESULT RenderRain(Rendering::RenderDevice *device, const RiseMath::Matrix &world, UINT drops)
void UpdateLightning(const CloudVolume::Parameters &value, double elapsed, const CloudVolume::Point &observer={})
void SetGroundLighting(const CloudVolume::GroundLighting &value)
HRESULT Initialize(Rendering::RenderDevice *device)
void SetLocalLightning(const RiseMath::Vector3 &position, const RiseMath::Color &color, float radius)
void SetLightningEnabled(bool value)
CloudWeather::Frame WeatherFrame()
static constexpr unsigned MaxHeadlights
void SetHeadlights(const std::vector< Headlight > &lights)
bool SetLightningDiagnostic(bool enabled)
Rendering::CloudRenderer11 * Effect()
HRESULT RenderSkyRing(Rendering::RenderDevice *device, Rendering::RenderTexture *atmosphere, Rendering::RenderBuffer *vertices, const RiseMath::Matrix &world, UINT segments, float physicalScale=1)
HRESULT Render(Rendering::RenderDevice *device, const RiseMath::Matrix &view, const RiseMath::Matrix &projection, const RiseMath::Vector3 &eye, const CloudVolume::Parameters &parameters, const RiseMath::Vector3 &sunlight, const RiseMath::Color &light, const RiseMath::Color &ambient, const RiseMath::Color &airglow=RiseMath::Color(.125f,.375f,.25f, 1), const RiseMath::Vector4 &horizon=RiseMath::Vector4(0, 0, 0, 0), const RiseMath::Vector4 &atmosphere=RiseMath::Vector4(0, 0, 0, 0), const RiseMath::Vector4 &nightVisionGain=RiseMath::Vector4(1, 1, 1, 0))
const std::string & InitializationStatus() const
void UpdateWeather(const CloudWeather::MapPtr &value, double elapsed)
CloudWeather::Frame WeatherFrame()
void SetLocalLightning(const Vector &position, const Color &color, float radiusKm)
void SetGroundLighting(const CloudVolume::GroundLighting &lighting)
bool SetLightningDiagnostic(bool enabled)
void SetLightningEnabled(bool value)
void UpdateWeather(const CloudWeather::MapPtr &map, double elapsed)
static constexpr unsigned MaxHeadlights
const std::string & InitializationStatus() const
HRESULT Initialize(ID3D11Device *device, const std::filesystem::path &shaderDirectory={})
std::shared_ptr< const Map > MapPtr