diff options
author | tylermurphy534 <tylermurphy534@gmail.com> | 2022-09-25 23:08:03 -0400 |
---|---|---|
committer | tylermurphy534 <tylermurphy534@gmail.com> | 2022-09-25 23:08:03 -0400 |
commit | ee3a4d6073421fd9e17e832dc9d10e151e6029ea (patch) | |
tree | b0228ffe9af69f53e7cff238a1ead44244cf4dea /res/shaders | |
parent | 3D Chunks rendering (diff) | |
download | minecraftvulkan-ee3a4d6073421fd9e17e832dc9d10e151e6029ea.tar.gz minecraftvulkan-ee3a4d6073421fd9e17e832dc9d10e151e6029ea.tar.bz2 minecraftvulkan-ee3a4d6073421fd9e17e832dc9d10e151e6029ea.zip |
remove color vertex data, mipmapping
Diffstat (limited to 'res/shaders')
-rwxr-xr-x | res/shaders/simple_shader.frag | 2 | ||||
-rwxr-xr-x | res/shaders/simple_shader.vert | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/res/shaders/simple_shader.frag b/res/shaders/simple_shader.frag index a4e2b7e..f3ae526 100755 --- a/res/shaders/simple_shader.frag +++ b/res/shaders/simple_shader.frag @@ -23,5 +23,5 @@ layout(push_constant) uniform Push { } push; void main() { - outColor = mix(texture(texSampler, fragUv), vec4(fragColor, 1.0), .5); + outColor = mix(texture(texSampler, fragUv), vec4(fragColor, 1.0), .1); }
\ No newline at end of file diff --git a/res/shaders/simple_shader.vert b/res/shaders/simple_shader.vert index 04b603e..30e7a79 100755 --- a/res/shaders/simple_shader.vert +++ b/res/shaders/simple_shader.vert @@ -1,9 +1,8 @@ #version 450 layout (location = 0) in vec3 position; -layout (location = 1) in vec3 color; -layout (location = 2) in vec3 normal; -layout (location = 3) in vec2 uv; +layout (location = 1) in vec3 normal; +layout (location = 2) in vec2 uv; layout (location = 0) out vec3 fragColor; layout (location = 1) out vec2 fragUv; @@ -32,6 +31,6 @@ void main() { float lightIntensity = AMBIENT + max(dot(normalWorldSpace, ubo.directionToLight), 0); - fragColor = lightIntensity * vec3(1/position.y,position.y,clamp(sin(position.x - position.z), 0, 1)); + fragColor = lightIntensity * vec3(1); fragUv = uv; }
\ No newline at end of file |