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++
268 B
Raw Blame
#ifndef LIB_PARTICLE_OCCLUSION
#define LIB_PARTICLE_OCCLUSION

void applyOcclusionDiscard(in vec3 coord, float sceneDepth)
{
#if @reverseZ
    if (coord.z < sceneDepth)
        discard;
#else
    if (coord.z * 0.5 + 0.5 > sceneDepth)
        discard;
#endif
}

#endif