summaryrefslogtreecommitdiff
path: root/resources/shaders/shader.frag
diff options
context:
space:
mode:
Diffstat (limited to 'resources/shaders/shader.frag')
-rwxr-xr-xresources/shaders/shader.frag5
1 files changed, 3 insertions, 2 deletions
diff --git a/resources/shaders/shader.frag b/resources/shaders/shader.frag
index 224b68e..581f4e2 100755
--- a/resources/shaders/shader.frag
+++ b/resources/shaders/shader.frag
@@ -22,7 +22,7 @@ uniform float alpha = 1.0;
//layout(binding = 0) uniform sampler2D groundSampler;
//layout(binding = 1) uniform sampler2D skySampler;
uniform sampler2D groundSampler;
-uniform sampler2D skySampler;
+uniform samplerCube skySampler;
uniform vec2 widthBounds;
uniform vec2 lengthBounds;
uniform vec4 sunColor = vec4(128, 10, 0, 1.f);
@@ -90,7 +90,8 @@ void main() {
vec4 transmissive = texture(groundSampler, vec2(refrUVBlurry));
vec4 murk = (vec4(waterVolumeColor * d * murkDiffuse + waterVolumeColor * murkAmbient, 1.0f));
- vec4 skyRefl = texture(skySampler, vec2(reflUV));
+// vec4 skyRefl = texture(skySampler, vec2(reflUV));
+ vec4 skyRefl = texture(skySampler, reflPos);
// refrProb *= beerAtt;
fragColor = 0.75f * diffuse; // Diffuse