Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
sky.cpp File Reference
#include <cmath>
#include "sky.h"
#include <ITexture.h>
#include <IVideoDriver.h>
#include <ISceneManager.h>
#include <ICameraSceneNode.h>
#include <S3DVertex.h>
#include "client/mesh.h"
#include "client/tile.h"
#include "noise.h"
#include "profiler.h"
#include "util/numeric.h"
#include "client/renderingengine.h"
#include "client/texturesource.h"
#include "settings.h"
#include "camera.h"
+ 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()

static video::SMaterial baseMaterial ( )
static

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

+ Here is the caller graph for this function:

◆ disableTextureFiltering()

static void disableTextureFiltering ( video::SMaterial & mat)
inlinestatic

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

+ Here is the caller graph for this function:

◆ getSkyBodyPosition()

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

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

+ Here is the caller graph for this function:

◆ getTextureAsImage()

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

References RenderingEngine::get_video_driver(), ITextureSource::getTexture(), 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: