Skip to content

An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.

C++
304 B
Raw Blame
#version 120

#include "lib/luminance/constants.glsl"

varying vec2 uv;
uniform sampler2D sceneTex;

void main()
{
    float lum = dot(texture2D(sceneTex, uv).rgb, vec3(0.2126, 0.7152, 0.0722));
    lum = max(lum, epsilon);

    gl_FragColor.r = clamp((log2(lum) - minLog) * invLogLumRange, 0.0, 1.0);
}