From a747f4009e547594f2f5d2abd6c5e9116cb94c47 Mon Sep 17 00:00:00 2001 From: Cory Petkovsek <632766+TokisanGames@users.noreply.github.com> Date: Thu, 16 Nov 2023 08:31:39 +0700 Subject: [PATCH] Improve control texture debug view coloring --- src/shaders/debug_views.glsl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/shaders/debug_views.glsl b/src/shaders/debug_views.glsl index b56af675b..5c7aa240b 100644 --- a/src/shaders/debug_views.glsl +++ b/src/shaders/debug_views.glsl @@ -39,15 +39,15 @@ R"( //INSERT: DEBUG_CONTROL_TEXTURE // Show control map texture selection float ctrl_base = weight_inv * ( - float(mat[0].base)/32. * weights.x + - float(mat[1].base)/32. * weights.y + - float(mat[2].base)/32. * weights.z + - float(mat[3].base)/32. * weights.w ); + float(mat[0].base) * weights.x + + float(mat[1].base) * weights.y + + float(mat[2].base) * weights.z + + float(mat[3].base) * weights.w )/96.; float ctrl_over = weight_inv * ( - float(mat[0].over)/32. * weights.x + - float(mat[1].over)/32. * weights.y + - float(mat[2].over)/32. * weights.z + - float(mat[3].over)/32. * weights.w ); + float(mat[0].over) * weights.x + + float(mat[1].over) * weights.y + + float(mat[2].over) * weights.z + + float(mat[3].over) * weights.w )/96.; ALBEDO = vec3(ctrl_base, ctrl_over, 0.); ROUGHNESS = 0.9; NORMAL_MAP = vec3(0.5, 0.5, 1.0);