summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/images/back.jpgbin0 -> 740068 bytes
-rw-r--r--resources/images/bottom.jpgbin0 -> 280589 bytes
-rw-r--r--resources/images/front.jpgbin0 -> 473329 bytes
-rw-r--r--resources/images/left.jpgbin0 -> 601885 bytes
-rw-r--r--resources/images/nx.pngbin0 -> 393798 bytes
-rw-r--r--resources/images/ny.pngbin0 -> 434286 bytes
-rw-r--r--resources/images/nz.pngbin0 -> 357235 bytes
-rw-r--r--resources/images/px.pngbin0 -> 377671 bytes
-rw-r--r--resources/images/py.pngbin0 -> 272005 bytes
-rw-r--r--resources/images/pz.pngbin0 -> 377237 bytes
-rw-r--r--resources/images/right.jpgbin0 -> 538038 bytes
-rw-r--r--resources/images/skyboxes/the_sky_is_on_fire_2k.hdrbin0 -> 5996454 bytes
-rw-r--r--resources/images/skyboxes/the_sky_is_on_fire_2k.pngbin0 -> 6744548 bytes
-rw-r--r--resources/images/top.jpgbin0 -> 346139 bytes
-rwxr-xr-xresources/shaders/shader.frag9
-rwxr-xr-xresources/shaders/shader.vert4
16 files changed, 7 insertions, 6 deletions
diff --git a/resources/images/back.jpg b/resources/images/back.jpg
new file mode 100644
index 0000000..470a679
--- /dev/null
+++ b/resources/images/back.jpg
Binary files differ
diff --git a/resources/images/bottom.jpg b/resources/images/bottom.jpg
new file mode 100644
index 0000000..893f394
--- /dev/null
+++ b/resources/images/bottom.jpg
Binary files differ
diff --git a/resources/images/front.jpg b/resources/images/front.jpg
new file mode 100644
index 0000000..4e17b77
--- /dev/null
+++ b/resources/images/front.jpg
Binary files differ
diff --git a/resources/images/left.jpg b/resources/images/left.jpg
new file mode 100644
index 0000000..5750b91
--- /dev/null
+++ b/resources/images/left.jpg
Binary files differ
diff --git a/resources/images/nx.png b/resources/images/nx.png
new file mode 100644
index 0000000..d95f151
--- /dev/null
+++ b/resources/images/nx.png
Binary files differ
diff --git a/resources/images/ny.png b/resources/images/ny.png
new file mode 100644
index 0000000..631caa9
--- /dev/null
+++ b/resources/images/ny.png
Binary files differ
diff --git a/resources/images/nz.png b/resources/images/nz.png
new file mode 100644
index 0000000..458d7b5
--- /dev/null
+++ b/resources/images/nz.png
Binary files differ
diff --git a/resources/images/px.png b/resources/images/px.png
new file mode 100644
index 0000000..7c5dc87
--- /dev/null
+++ b/resources/images/px.png
Binary files differ
diff --git a/resources/images/py.png b/resources/images/py.png
new file mode 100644
index 0000000..745687f
--- /dev/null
+++ b/resources/images/py.png
Binary files differ
diff --git a/resources/images/pz.png b/resources/images/pz.png
new file mode 100644
index 0000000..2a36023
--- /dev/null
+++ b/resources/images/pz.png
Binary files differ
diff --git a/resources/images/right.jpg b/resources/images/right.jpg
new file mode 100644
index 0000000..8963037
--- /dev/null
+++ b/resources/images/right.jpg
Binary files differ
diff --git a/resources/images/skyboxes/the_sky_is_on_fire_2k.hdr b/resources/images/skyboxes/the_sky_is_on_fire_2k.hdr
new file mode 100644
index 0000000..e669310
--- /dev/null
+++ b/resources/images/skyboxes/the_sky_is_on_fire_2k.hdr
Binary files differ
diff --git a/resources/images/skyboxes/the_sky_is_on_fire_2k.png b/resources/images/skyboxes/the_sky_is_on_fire_2k.png
new file mode 100644
index 0000000..5ec3faf
--- /dev/null
+++ b/resources/images/skyboxes/the_sky_is_on_fire_2k.png
Binary files differ
diff --git a/resources/images/top.jpg b/resources/images/top.jpg
new file mode 100644
index 0000000..4db3c2a
--- /dev/null
+++ b/resources/images/top.jpg
Binary files differ
diff --git a/resources/shaders/shader.frag b/resources/shaders/shader.frag
index 7fc82ed..ef4e9c7 100755
--- a/resources/shaders/shader.frag
+++ b/resources/shaders/shader.frag
@@ -44,8 +44,9 @@ float rand(vec4 n) {
}
vec2 uvFromWorldPoint(vec3 point) {
- float u = (point.x - widthBounds[0] * 50) / (widthBounds[1] * 50 - widthBounds[0] * 50);
- float v = (point.z - lengthBounds[0] * 50) / (lengthBounds[1] * 50 - lengthBounds[0] * 50);
+ float scale = 5.f;
+ float u = (point.x - widthBounds[0] * scale) / (widthBounds[1] * scale - widthBounds[0] * scale);
+ float v = (point.z - lengthBounds[0] * scale) / (lengthBounds[1] * scale - lengthBounds[0] * scale);
return vec2(u, v);
}
@@ -70,9 +71,9 @@ void main() {
vec2 refrUV = uvFromWorldPoint(refrPos);
vec2 reflUV = uvFromWorldPoint(reflPos);
-// float waterMurkiness = 0.002f; // TODO: Make uniform
+ float waterMurkiness = 0.003f; // TODO: Make uniform
// float waterMurkiness = 0.0005f; // TODO: Make uniform
- float waterMurkiness = 0.0005f; // TODO: Make uniform
+// float waterMurkiness = 0.000f; // TODO: Make uniform
vec3 waterVolumeColor = vec3(red * 0.1f, green * 0.2f, blue * 0.2f);
float murkDiffuse = 0.3f;
float murkAmbient = 0.8f;
diff --git a/resources/shaders/shader.vert b/resources/shaders/shader.vert
index 3cd5c17..0994b90 100755
--- a/resources/shaders/shader.vert
+++ b/resources/shaders/shader.vert
@@ -4,8 +4,8 @@ layout(location = 0) in vec3 position; // Position of the vertex
layout(location = 1) in vec3 normal; // Normal of the vertex
layout(location = 2) in vec3 texCoords; // Normal of the vertex
-uniform float depth = -3000.f;
-uniform float skyHeight = 500.f;
+uniform float depth = -500.f;
+uniform float skyHeight = 100.f;
uniform mat4 proj;
uniform mat4 view;
uniform mat4 model;