mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Stuff for volumetric clouds
This commit is contained in:
parent
415f6b6bdb
commit
a1b4e66c4c
5 changed files with 22 additions and 0 deletions
|
@ -396,6 +396,13 @@ void Clouds::render()
|
|||
fog_pixelfog, fog_rangefog);
|
||||
}
|
||||
|
||||
void Clouds::renderVolumetrics() {
|
||||
video::IVideoDriver* driver = SceneManager->getVideoDriver();
|
||||
v2u32 ss = driver->getScreenSize();
|
||||
core::rect<s32> rect(0, 0, ss.X, ss.Y);
|
||||
driver->draw2DRectangle(video::SColor(255, 255, 255, 255), rect);
|
||||
}
|
||||
|
||||
void Clouds::step(float dtime)
|
||||
{
|
||||
m_origin = m_origin + dtime * BS * m_params.speed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue