aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/shaders/chunk.frag
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2022-06-20 00:23:26 +0200
committermakamys <makamys@outlook.com>2022-06-20 00:24:29 +0200
commit93fff8b1a9154bf514b2b0d3fcf2bd4c44a1a941 (patch)
treef0e061f38432e6b5a0adb81022f522937bd0b52c /src/main/resources/shaders/chunk.frag
parent92d6f9502b0aec45fa3806d821d558bbe0a58d71 (diff)
downloadNeodymium-93fff8b1a9154bf514b2b0d3fcf2bd4c44a1a941.tar.gz
Neodymium-93fff8b1a9154bf514b2b0d3fcf2bd4c44a1a941.tar.bz2
Neodymium-93fff8b1a9154bf514b2b0d3fcf2bd4c44a1a941.zip
Rename squadron to megaquad
Less funny but more clear in my opinion
Diffstat (limited to 'src/main/resources/shaders/chunk.frag')
-rw-r--r--src/main/resources/shaders/chunk.frag8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/resources/shaders/chunk.frag b/src/main/resources/shaders/chunk.frag
index b11fcc8..b19f152 100644
--- a/src/main/resources/shaders/chunk.frag
+++ b/src/main/resources/shaders/chunk.frag
@@ -4,7 +4,7 @@ out vec4 FragColor;
in vec2 TexCoord;
in vec2 BTexCoord;
in vec4 Color;
-in vec4 SPos;
+in vec4 MQPos;
in vec4 Viewport;
in mat4 ProjInv;
in vec4 FogColor;
@@ -17,10 +17,10 @@ uniform sampler2D lightTex;
void main()
{
- float wrappedU = mod(SPos.x, 1.0);
- float wrappedV = mod(SPos.y, 1.0);
+ float wrappedU = mod(MQPos.x, 1.0);
+ float wrappedV = mod(MQPos.y, 1.0);
- vec2 goodTexCoord = ProvokingTexCoord.xy + (((TexCoord.xy - ProvokingTexCoord.xy) / SPos.zw) * vec2(wrappedU, wrappedV));
+ vec2 goodTexCoord = ProvokingTexCoord.xy + (((TexCoord.xy - ProvokingTexCoord.xy) / MQPos.zw) * vec2(wrappedU, wrappedV));
vec4 texColor = texture(atlas, goodTexCoord);