12#include <ISceneNode.h>
14#include <SMeshBuffer.h>
30class Clouds :
public scene::ISceneNode
67 void step(
float dtime);
69 void update(
const v3f &camera_p,
const video::SColorf &color);
138 BS * 1000000.0f, height_bs + thickness_bs,
BS * 1000000.0f);
173 video::SColorf
m_color = video::SColorf(1.0f, 1.0f, 1.0f, 1.0f);
void setColorAmbient(video::SColor color_ambient)
Definition clouds.h:92
irr_ptr< scene::SMeshBuffer > m_meshbuffer
Definition clouds.h:155
bool gridFilled(int x, int y) const
Definition clouds.cpp:454
virtual u32 getMaterialCount() const
Definition clouds.h:53
video::SColorf m_color
Definition clouds.h:173
bool isCameraInsideCloud() const
Definition clouds.h:128
virtual video::SMaterial & getMaterial(u32 i)
Definition clouds.h:58
bool m_enable_3d
Definition clouds.h:172
bool is3D() const
Definition clouds.h:150
CloudParams m_params
Definition clouds.h:174
void step(float dtime)
Definition clouds.cpp:412
v3f m_camera_pos
Definition clouds.h:167
v2f m_origin
Definition clouds.h:164
void invalidateMesh()
Definition clouds.h:142
u32 m_seed
Definition clouds.h:166
virtual void OnRegisterSceneNode()
Definition clouds.cpp:64
void setThickness(float thickness)
Definition clouds.h:119
void update(const v3f &camera_p, const video::SColorf &color)
Definition clouds.cpp:417
void updateBox()
Definition clouds.h:133
void setColorShadow(video::SColor color_shadow)
Definition clouds.h:97
void readSettings()
Definition clouds.cpp:442
void setHeight(float height)
Definition clouds.h:105
const video::SColor getColor() const
Definition clouds.h:130
void setColorBright(video::SColor color_bright)
Definition clouds.h:87
u16 m_cloud_radius_i
Definition clouds.h:165
void setDensity(float density)
Definition clouds.h:79
void setSpeed(v2f speed)
Definition clouds.h:114
~Clouds()
Definition clouds.cpp:59
aabb3f m_box
Definition clouds.h:163
bool m_camera_inside_cloud
Definition clouds.h:170
video::SMaterial m_material
Definition clouds.h:154
v3s16 m_camera_offset
Definition clouds.h:169
Clouds(scene::ISceneManager *mgr, IShaderSource *ssrc, s32 id, u32 seed)
Definition clouds.cpp:28
bool m_mesh_valid
Definition clouds.h:161
v2s16 m_last_noise_center
Definition clouds.h:159
void updateCameraOffset(v3s16 camera_offset)
Definition clouds.h:71
v2f m_mesh_origin
Definition clouds.h:157
virtual const aabb3f & getBoundingBox() const
Definition clouds.h:48
virtual void render()
Definition clouds.cpp:359
void updateMesh()
Definition clouds.cpp:74
scene::ISceneManager * g_menucloudsmgr
Definition clouds.cpp:17
Clouds * g_menuclouds
Definition clouds.cpp:18
#define BS
Definition constants.h:61
core::aabbox3d< f32 > aabb3f
Definition irr_aabb3d.h:11
core::vector2d< s16 > v2s16
Definition irr_v2d.h:12
core::vector2d< f32 > v2f
Definition irr_v2d.h:11
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
core::vector3df v3f
Definition irr_v3d.h:11
Definition clientmap.h:30
Definition skyparams.h:65
video::SColor color_shadow
Definition skyparams.h:69
video::SColor color_bright
Definition skyparams.h:67
float thickness
Definition skyparams.h:70
video::SColor color_ambient
Definition skyparams.h:68
v2f speed
Definition skyparams.h:72
float height
Definition skyparams.h:71
float density
Definition skyparams.h:66