mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-16 22:08:26 +00:00
Apply re encoded images automatically after being set.
This commit is contained in:
parent
e40c081560
commit
e62faba478
5 changed files with 7 additions and 2 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -944,8 +944,10 @@ namespace FirstPlugin
|
|||
shader.SetVector4("gsys_bake_st0", new Vector4(1, 1, 0, 0));
|
||||
shader.SetVector4("gsys_bake_st1", new Vector4(1, 1, 0, 0));
|
||||
|
||||
shader.SetBoolToInt("UseSpecularColor", mat.GetOptionValue("specular_mask_is_color") == 1);
|
||||
|
||||
shader.SetBoolToInt("UseSpecularColor",
|
||||
(mat.GetOptionValue("specular_mask_is_color") == 1) ||
|
||||
mat.GetOptionValue("enable_specular_color") == 1);
|
||||
|
||||
//Colors
|
||||
shader.SetVector4("const_color0", new Vector4(1, 1, 1, 1));
|
||||
shader.SetVector4("base_color_mul_color", new Vector4(1, 1, 1, 1));
|
||||
|
|
|
@ -766,6 +766,9 @@ namespace Switch_Toolbox.Library.Forms
|
|||
ActiveTexture.MipCount = (uint)encodingEditor.MipCount;
|
||||
|
||||
UpdateEditCached(encodingEditor.newImage);
|
||||
ApplyEdit(encodingEditor.newImage);
|
||||
|
||||
UpdateImage(ActiveTexture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue