OpenUT99-Plus
Unreal Engine 1, rebuilt from scratch
Loading...
Searching...
No Matches
lighting.cpp File Reference
#include "lighting.h"
#include <algorithm>
#include <cmath>

Namespaces

namespace  ut

Functions

static float ut::dot (const Vec3 &a, const Vec3 &b)
static Vec3 ut::cross (const Vec3 &a, const Vec3 &b)
Vec3 ut::luxel_position (const Model &m, const Surf &s, const LightMap &lm, int i, int j)
int ut::lightmap_lights (const Model &m, const LightMap &lm)
bool ut::shadow_bit (const Model &m, const LightMap &lm, int light, int i, int j)
Vec3 ut::light_colour (int hue, int saturation, int brightness)
float ut::light_falloff (float d, int radius)