summaryrefslogtreecommitdiff
path: root/res/shaders
diff options
context:
space:
mode:
authortylermurphy534 <tylermurphy534@gmail.com>2022-09-19 21:28:41 -0400
committertylermurphy534 <tylermurphy534@gmail.com>2022-09-19 21:28:41 -0400
commit8cc0b081ef0188f850814b2af2cb077583eb9f2d (patch)
treef90ba2da50c91f596672730706440149fecb2393 /res/shaders
parenttemp patch (diff)
downloadminecraftvulkan-8cc0b081ef0188f850814b2af2cb077583eb9f2d.tar.gz
minecraftvulkan-8cc0b081ef0188f850814b2af2cb077583eb9f2d.tar.bz2
minecraftvulkan-8cc0b081ef0188f850814b2af2cb077583eb9f2d.zip
finish refactor
Diffstat (limited to 'res/shaders')
-rwxr-xr-xres/shaders/simple_shader.vert2
-rw-r--r--res/shaders/simple_shader.vert.spvbin2520 -> 2816 bytes
2 files changed, 1 insertions, 1 deletions
diff --git a/res/shaders/simple_shader.vert b/res/shaders/simple_shader.vert
index be802f7..55b0199 100755
--- a/res/shaders/simple_shader.vert
+++ b/res/shaders/simple_shader.vert
@@ -26,5 +26,5 @@ void main() {
float lightIntensity = AMBIENT + max(dot(normalWorldSpace, ubo.directionToLight), 0);
- fragColor = lightIntensity * color;
+ fragColor = lightIntensity * vec3(1/position.y,position.y,clamp(sin(position.x - position.z), 0, 1));
} \ No newline at end of file
diff --git a/res/shaders/simple_shader.vert.spv b/res/shaders/simple_shader.vert.spv
index 7b4a820..bba7f70 100644
--- a/res/shaders/simple_shader.vert.spv
+++ b/res/shaders/simple_shader.vert.spv
Binary files differ