1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-23 15:23:52 +00:00
openmw/files/shaders/lib/core/fragment.glsl

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
664 B
Text
Raw Normal View History

#version 120
2023-02-25 19:03:39 +00:00
#include "lib/core/fragment.h.glsl"
uniform sampler2D reflectionMap;
2023-02-25 19:03:39 +00:00
vec4 sampleReflectionMap(vec2 uv)
{
return texture2D(reflectionMap, uv);
}
#if @refraction_enabled
uniform sampler2D refractionMap;
uniform sampler2D refractionDepthMap;
2023-02-25 19:03:39 +00:00
vec4 sampleRefractionMap(vec2 uv)
{
return texture2D(refractionMap, uv);
}
2023-02-25 19:03:39 +00:00
float sampleRefractionDepthMap(vec2 uv)
{
return texture2D(refractionDepthMap, uv).x;
}
2022-05-14 01:58:00 +00:00
#endif
2023-02-25 19:03:39 +00:00
uniform sampler2D lastShader;
2022-05-14 01:58:00 +00:00
2023-02-25 19:03:39 +00:00
vec4 samplerLastShader(vec2 uv)
2022-05-14 01:58:00 +00:00
{
2023-02-25 19:03:39 +00:00
return texture2D(lastShader, uv);
2022-05-14 01:58:00 +00:00
}
2022-07-09 20:21:48 +00:00
#if @skyBlending
uniform sampler2D sky;
2023-02-25 19:03:39 +00:00
vec3 sampleSkyColor(vec2 uv)
2022-07-09 20:21:48 +00:00
{
return texture2D(sky, uv).xyz;
}
#endif