#include <clouds.h>
◆ Clouds()
Clouds::Clouds |
( |
scene::ISceneManager * | mgr, |
|
|
IShaderSource * | ssrc, |
|
|
s32 | id, |
|
|
u32 | seed ) |
References cloud_3d_setting_changed(), g_settings, Settings::getBool(), SkyboxDefaults::getCloudDefaults(), IShaderSource::getShader(), IShaderSource::getShaderInfo(), m_enable_shaders, m_material, m_meshbuffer, m_params, ShaderInfo::material, readSettings(), Settings::registerChangedCallback(), TILE_MATERIAL_ALPHA, and updateBox().
◆ ~Clouds()
◆ getBoundingBox()
virtual const aabb3f & Clouds::getBoundingBox |
( |
| ) |
const |
|
inlinevirtual |
◆ getColor()
const video::SColor Clouds::getColor |
( |
| ) |
const |
|
inline |
◆ getMaterial()
virtual video::SMaterial & Clouds::getMaterial |
( |
u32 | i | ) |
|
|
inlinevirtual |
◆ getMaterialCount()
virtual u32 Clouds::getMaterialCount |
( |
| ) |
const |
|
inlinevirtual |
◆ gridFilled()
bool Clouds::gridFilled |
( |
int | x, |
|
|
int | y ) const |
|
private |
◆ invalidateMesh()
void Clouds::invalidateMesh |
( |
| ) |
|
|
inlineprivate |
◆ is3D()
bool Clouds::is3D |
( |
| ) |
const |
|
inlineprivate |
◆ isCameraInsideCloud()
bool Clouds::isCameraInsideCloud |
( |
| ) |
const |
|
inline |
◆ OnRegisterSceneNode()
void Clouds::OnRegisterSceneNode |
( |
| ) |
|
|
virtual |
◆ readSettings()
void Clouds::readSettings |
( |
| ) |
|
◆ render()
References BS, cloud_size, CloudParams::density, FOG_RANGE_ALL, intToFloat(), is3D(), m_camera_offset, m_cloud_radius_i, m_color, m_enable_shaders, m_material, m_mesh_origin, m_meshbuffer, m_origin, m_params, and updateMesh().
◆ setColorAmbient()
void Clouds::setColorAmbient |
( |
video::SColor | color_ambient | ) |
|
|
inline |
◆ setColorBright()
void Clouds::setColorBright |
( |
video::SColor | color_bright | ) |
|
|
inline |
◆ setColorShadow()
void Clouds::setColorShadow |
( |
video::SColor | color_shadow | ) |
|
|
inline |
◆ setDensity()
void Clouds::setDensity |
( |
float | density | ) |
|
|
inline |
◆ setHeight()
void Clouds::setHeight |
( |
float | height | ) |
|
|
inline |
◆ setSpeed()
void Clouds::setSpeed |
( |
v2f | speed | ) |
|
|
inline |
◆ setThickness()
void Clouds::setThickness |
( |
float | thickness | ) |
|
|
inline |
◆ step()
void Clouds::step |
( |
float | dtime | ) |
|
◆ update()
void Clouds::update |
( |
const v3f & | camera_p, |
|
|
const video::SColorf & | color ) |
References BS, cloud_size, CloudParams::color_ambient, CloudParams::color_bright, gridFilled(), is3D(), m_box, m_camera_inside_cloud, m_camera_offset, m_camera_pos, m_color, m_origin, and m_params.
Referenced by ClientLauncher::run().
◆ updateBox()
void Clouds::updateBox |
( |
| ) |
|
|
inlineprivate |
◆ updateCameraOffset()
void Clouds::updateCameraOffset |
( |
v3s16 | camera_offset | ) |
|
|
inline |
◆ updateMesh()
void Clouds::updateMesh |
( |
| ) |
|
|
private |
References BS, cloud_size, CloudParams::color_shadow, g_profiler, g_settings, Settings::getBool(), GETINDEX, gridFilled(), CloudParams::height, INAREA, is3D(), m_camera_pos, m_cloud_radius_i, m_color, m_enable_shaders, m_last_noise_center, m_mesh_origin, m_mesh_valid, m_meshbuffer, m_origin, m_params, SPT_AVG, CloudParams::thickness, and tracestream.
Referenced by render().
◆ m_box
◆ m_camera_inside_cloud
bool Clouds::m_camera_inside_cloud = false |
|
private |
◆ m_camera_offset
v3s16 Clouds::m_camera_offset |
|
private |
◆ m_camera_pos
◆ m_cloud_radius_i
u16 Clouds::m_cloud_radius_i |
|
private |
◆ m_color
video::SColorf Clouds::m_color = video::SColorf(1.0f, 1.0f, 1.0f, 1.0f) |
|
private |
◆ m_enable_3d
◆ m_enable_shaders
bool Clouds::m_enable_shaders |
|
private |
◆ m_last_noise_center
v2s16 Clouds::m_last_noise_center |
|
private |
◆ m_material
video::SMaterial Clouds::m_material |
|
private |
◆ m_mesh_origin
v2f Clouds::m_mesh_origin |
|
private |
◆ m_mesh_valid
bool Clouds::m_mesh_valid = false |
|
private |
◆ m_meshbuffer
irr_ptr<scene::SMeshBuffer> Clouds::m_meshbuffer |
|
private |
◆ m_origin
◆ m_params
Referenced by Clouds(), gridFilled(), is3D(), render(), setColorAmbient(), setColorBright(), setColorShadow(), setDensity(), setHeight(), setSpeed(), setThickness(), step(), update(), updateBox(), and updateMesh().
◆ m_seed
The documentation for this class was generated from the following files: