2022-04-26 17:54:24 +00:00
|
|
|
#version 120
|
|
|
|
|
2023-02-25 19:03:39 +00:00
|
|
|
#include "lib/core/fragment.h.glsl"
|
2022-04-26 17:54:24 +00:00
|
|
|
|
|
|
|
uniform sampler2D reflectionMap;
|
|
|
|
|
2023-02-25 19:03:39 +00:00
|
|
|
vec4 sampleReflectionMap(vec2 uv)
|
2022-04-26 17:54:24 +00:00
|
|
|
{
|
|
|
|
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)
|
2022-04-26 17:54:24 +00:00
|
|
|
{
|
|
|
|
return texture2D(refractionMap, uv);
|
|
|
|
}
|
|
|
|
|
2023-02-25 19:03:39 +00:00
|
|
|
float sampleRefractionDepthMap(vec2 uv)
|
2022-04-26 17:54:24 +00:00
|
|
|
{
|
|
|
|
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
|