1
0
mirror of synced 2024-11-12 02:00:50 +01:00

Apply re encoded images automatically after being set.

This commit is contained in:
KillzXGaming 2019-06-03 21:15:06 -04:00
parent e40c081560
commit e62faba478
5 changed files with 7 additions and 2 deletions

Binary file not shown.

View File

@ -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));

View File

@ -766,6 +766,9 @@ namespace Switch_Toolbox.Library.Forms
ActiveTexture.MipCount = (uint)encodingEditor.MipCount;
UpdateEditCached(encodingEditor.newImage);
ApplyEdit(encodingEditor.newImage);
UpdateImage(ActiveTexture);
}
}