4 #ifndef _OGL_GASGIANTMATERIAL_H
5 #define _OGL_GASGIANTMATERIAL_H
17 GasGiantProgram(
const std::string &filename,
const std::string &defines);
43 virtual void Apply()
override;
Definition: Material.h:57
Definition: GasGiantMaterial.h:15
Uniform geosphereCenter
Definition: GasGiantMaterial.h:23
Uniform geosphereAtmosTopRad
Definition: GasGiantMaterial.h:22
Uniform shadowCentreZ
Definition: GasGiantMaterial.h:29
Uniform lrad
Definition: GasGiantMaterial.h:31
Uniform geosphereInvRadius
Definition: GasGiantMaterial.h:25
Uniform geosphereAtmosInvScaleHeight
Definition: GasGiantMaterial.h:21
Uniform sdivlrad
Definition: GasGiantMaterial.h:32
virtual void InitUniforms()
Definition: GasGiantMaterial.cpp:25
Uniform geosphereRadius
Definition: GasGiantMaterial.h:24
Uniform atmosColor
Definition: GasGiantMaterial.h:19
Uniform srad
Definition: GasGiantMaterial.h:30
Uniform shadowCentreX
Definition: GasGiantMaterial.h:27
GasGiantProgram(const std::string &filename, const std::string &defines)
Definition: GasGiantMaterial.cpp:17
Uniform shadowCentreY
Definition: GasGiantMaterial.h:28
Uniform geosphereAtmosFogDensity
Definition: GasGiantMaterial.h:20
Definition: GasGiantMaterial.h:38
virtual void Apply() override
Definition: GasGiantMaterial.cpp:80
virtual void SetProgram(Program *p) override
Definition: GasGiantMaterial.cpp:74
Program * m_programs[4]
Definition: GasGiantMaterial.h:50
void SetGSUniforms()
Definition: GasGiantMaterial.cpp:86
void SwitchShadowVariant()
Definition: GasGiantMaterial.cpp:143
virtual Program * CreateProgram(const MaterialDescriptor &) override
Definition: GasGiantMaterial.cpp:52
Uint32 m_curNumShadows
Definition: GasGiantMaterial.h:51
GasGiantSurfaceMaterial()
Definition: GasGiantMaterial.cpp:45
Definition: MaterialGL.h:26
Definition: Background.h:13