Skip to content

Commit

Permalink
Improve control texture debug view coloring
Browse files Browse the repository at this point in the history
  • Loading branch information
TokisanGames committed Nov 16, 2023
1 parent 16d4feb commit a747f40
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/shaders/debug_views.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a747f40

Please sign in to comment.