OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
sky.cpp File Reference
#include "sky.h"
#include <Tempest/Application>
#include <Tempest/CommandBuffer>
#include <Tempest/Platform>
#include <Tempest/Fence>
#include <cctype>
#include "utils/string_frm.h"
#include "world/world.h"
#include "gothic.h"
#include "resources.h"

Go to the source code of this file.

Functions

static float smoothstep (float edge0, float edge1, float x)
 
static float linearstep (float edge0, float edge1, float x)
 

Variables

static const float DirectSunLux = 128'000.f
 
static const float DirectMoonLux = 1.f
 

Function Documentation

◆ linearstep()

static float linearstep ( float  edge0,
float  edge1,
float  x 
)
static

Definition at line 43 of file sky.cpp.

◆ smoothstep()

static float smoothstep ( float  edge0,
float  edge1,
float  x 
)
static

Definition at line 38 of file sky.cpp.

Variable Documentation

◆ DirectMoonLux

const float DirectMoonLux = 1.f
static

Definition at line 32 of file sky.cpp.

◆ DirectSunLux

const float DirectSunLux = 128'000.f
static

Definition at line 31 of file sky.cpp.