Luanti 5.16.0-dev
Loading...
Searching...
No Matches
sky.cpp File Reference
#include "sky.h"
#include "camera.h"
#include "client/renderingengine.h"
#include "client/texturesource.h"
#include "noise.h"
#include "player.h"
#include "profiler.h"
#include "settings.h"
#include "util/numeric.h"
#include <ICameraSceneNode.h>
#include <ISceneManager.h>
#include <ITexture.h>
#include <IVideoDriver.h>
#include <S3DVertex.h>
#include <cmath>
Include dependency graph for sky.cpp:

Functions

static video::SMaterial baseMaterial ()
static void disableTextureFiltering (video::SMaterial &mat)
static v3f getSkyBodyPosition (float horizon_position, float day_position, float orbit_tilt)
static void getTextureAsImage (video::IImage *&dst, const std::string &name, ITextureSource *tsrc)
float getWickedTimeOfDay (float time_of_day)

Function Documentation

◆ baseMaterial()

video::SMaterial baseMaterial ( )
static

Referenced by Sky::Sky(), Sky::addTextureToSkybox(), Sky::setMoonTexture(), and Sky::setSunTexture().

Here is the caller graph for this function:

◆ disableTextureFiltering()

void disableTextureFiltering ( video::SMaterial & mat)
inlinestatic

Referenced by Sky::setMoonTexture(), and Sky::setSunTexture().

Here is the caller graph for this function:

◆ getSkyBodyPosition()

v3f getSkyBodyPosition ( float horizon_position,
float day_position,
float orbit_tilt )
static

Referenced by Sky::getMoonDirection(), and Sky::getSunDirection().

Here is the caller graph for this function:

◆ getTextureAsImage()

void getTextureAsImage ( video::IImage *& dst,
const std::string & name,
ITextureSource * tsrc )
static

References RenderingEngine::get_video_driver(), ITextureSource::getTexture(), infostream, and ITextureSource::isKnownSourceImage().

Referenced by Sky::setMoonTexture(), and Sky::setSunTexture().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getWickedTimeOfDay()

float getWickedTimeOfDay ( float time_of_day)

Referenced by Sky::getMoonDirection(), Sky::getSunDirection(), Sky::render(), and Game::updateShadows().

Here is the caller graph for this function: