aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2022-06-10 18:06:59 +0200
committermakamys <makamys@outlook.com>2022-06-10 19:21:01 +0200
commitb34ebe6e5df8c788405934a84bd5d0ab3423391d (patch)
tree47ddde3aa17d3a99b2227023229b8c18554e6ae8 /src/main/resources
parente1097c3f69077be93089d1ef91aa8cdebd00d43c (diff)
downloadNeodymium-b34ebe6e5df8c788405934a84bd5d0ab3423391d.tar.gz
Neodymium-b34ebe6e5df8c788405934a84bd5d0ab3423391d.tar.bz2
Neodymium-b34ebe6e5df8c788405934a84bd5d0ab3423391d.zip
me_no_understant
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/shaders/chunk.frag6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/resources/shaders/chunk.frag b/src/main/resources/shaders/chunk.frag
index e779d7c..d399114 100644
--- a/src/main/resources/shaders/chunk.frag
+++ b/src/main/resources/shaders/chunk.frag
@@ -23,7 +23,7 @@ void main()
if(true){
//FragColor = vec4(1, 1, 1, 1);
//FragColor = vec4((SPos.x), (SPos.y), 0, 1);
- FragColor = vec4(SPos.x>0.5?1:0,0, 0, 1);
+ FragColor = vec4(SPos.xy, 0, 1);
//FragColor = vec4(abs(TexCoord.x - ProvokingTexCoord.x) * 100.0, abs(TexCoord.y - ProvokingTexCoord.y) * 100.0, 0, 1);
//FragColor = vec4((TexCoord.xy - ProvokingTexCoord.xy) * 100.0, 0, 1);
} else {
@@ -34,9 +34,9 @@ void main()
float goodTexCoordU = ProvokingTexCoord.x + (((TexCoord.x - ProvokingTexCoord.x) / SPos.z) * relU);
float goodTexCoordV = ProvokingTexCoord.y + (((TexCoord.y - ProvokingTexCoord.y) / SPos.w) * relV);
- //vec2 goodTexCoord = vec2(goodTexCoordU, goodTexCoordV);
+ vec2 goodTexCoord = vec2(goodTexCoordU, goodTexCoordV);
- vec2 goodTexCoord = ProvokingTexCoord + vec2(SPos.x / 3.0, SPos.y) * (1.0/16.0);
+ //vec2 goodTexCoord = ProvokingTexCoord + vec2(SPos.x / 3.0, SPos.y) * (1.0/16.0);
vec4 texColor = texture(atlas, goodTexCoord);
//vec4 texColor = texture(atlas, TexCoord);