From 4bc265968f921e5810d0f94f2cf3e86d86bc0fbf Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Wed, 7 Feb 2024 12:59:40 +0100 Subject: [PATCH] skinShader - Rename 'o_TexScale' to 'o_TillingFactor' --- PCK-Studio/Resources/shader/skinFragmentShader.glsl | 4 ++-- PCK-Studio/Resources/shader/skinGeometryShader.glsl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PCK-Studio/Resources/shader/skinFragmentShader.glsl b/PCK-Studio/Resources/shader/skinFragmentShader.glsl index cfa69e6a..81c18ca5 100644 --- a/PCK-Studio/Resources/shader/skinFragmentShader.glsl +++ b/PCK-Studio/Resources/shader/skinFragmentShader.glsl @@ -4,10 +4,10 @@ layout(location = 0) out vec4 color; uniform sampler2D u_Texture; -in vec2 o_TexScale; +in vec2 o_TillingFactor; in vec2 o_TexCoord; void main() { - color = texture(u_Texture, o_TexCoord * o_TexScale); + color = texture(u_Texture, o_TexCoord * o_TillingFactor); }; \ No newline at end of file diff --git a/PCK-Studio/Resources/shader/skinGeometryShader.glsl b/PCK-Studio/Resources/shader/skinGeometryShader.glsl index 2423ce57..944aaee0 100644 --- a/PCK-Studio/Resources/shader/skinGeometryShader.glsl +++ b/PCK-Studio/Resources/shader/skinGeometryShader.glsl @@ -6,7 +6,7 @@ layout (triangle_strip, max_vertices=3) out; uniform vec2 u_TexSize; out vec2 o_TexCoord; -out vec2 o_TexScale; +out vec2 o_TillingFactor; in geometryData { @@ -41,7 +41,7 @@ void FixUV() void main() { - o_TexScale = 1.0 / u_TexSize; + o_TillingFactor = 1.0 / u_TexSize; FixUV(); EndPrimitive(); }; \ No newline at end of file