Rise
The Vieneo Province
Loading...
Searching...
No Matches
ThrustConeRender.h
Go to the documentation of this file.
1#pragma once
3
5{
6 enum class Pass { All, BeforeClouds, AfterClouds };
7 inline bool Defer(bool volumeClouds,bool simulator) {return volumeClouds && !simulator;}
8 inline bool IsCone(int type)
9 { return type>=200 && type<=225 && type%5==0; }
10 inline bool Includes(Pass pass,int type)
11 { return pass==Pass::All || IsCone(type)==(pass==Pass::AfterClouds); }
12
13 // Exhaust is translucent geometry, never an opaque stop for the cloud
14 // composite. Keep hull depth testing, and restore all caller state.
37}
HRESULT SetRenderState(DWORD state, DWORD value)
HRESULT Restore(const Saved &value)
OverlayState(const OverlayState &)=delete
Rendering::RenderDevice::Saved saved
Rendering::RenderDevice & device
OverlayState & operator=(const OverlayState &)=delete
OverlayState(Rendering::RenderDevice &device)
constexpr uint32_t INVSRCALPHA
constexpr uint32_t SRCALPHA
constexpr uint32_t ADD
constexpr uint32_t LESSEQUAL
constexpr uint32_t SRCBLEND
constexpr uint32_t ALPHABLENDENABLE
constexpr uint32_t DESTBLEND
constexpr uint32_t STENCILWRITEMASK
constexpr uint32_t ZFUNC
constexpr uint32_t ZWRITEENABLE
constexpr uint32_t ZENABLE
constexpr uint32_t BLENDOP
bool Includes(Pass pass, int type)
bool Defer(bool volumeClouds, bool simulator)
bool IsCone(int type)