1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00
OpenMW/files/shaders/openmw_fragment.glsl

26 lines
447 B
GLSL

#version 120
#include "openmw_fragment.h.glsl"
uniform sampler2D reflectionMap;
vec4 mw_sampleReflectionMap(vec2 uv)
{
return texture2D(reflectionMap, uv);
}
#if @refraction_enabled
uniform sampler2D refractionMap;
uniform sampler2D refractionDepthMap;
vec4 mw_sampleRefractionMap(vec2 uv)
{
return texture2D(refractionMap, uv);
}
float mw_sampleRefractionDepthMap(vec2 uv)
{
return texture2D(refractionDepthMap, uv).x;
}
#endif