mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-16 09:38:05 +00:00
Apply default texture for unmapped materials
This commit is contained in:
parent
19852762c6
commit
db9edd0746
5 changed files with 3 additions and 3 deletions
Binary file not shown.
|
@ -446,8 +446,8 @@ namespace FirstPlugin
|
|||
{
|
||||
SetDefaultTextureAttributes(mat, shader);
|
||||
|
||||
// GL.ActiveTexture(TextureUnit.Texture0 + 1);
|
||||
// GL.BindTexture(TextureTarget.Texture2D, RenderTools.defaultTex.Id);
|
||||
GL.ActiveTexture(TextureUnit.Texture0 + 1);
|
||||
GL.BindTexture(TextureTarget.Texture2D, RenderTools.defaultTex.Id);
|
||||
|
||||
GL.ActiveTexture(TextureUnit.Texture11);
|
||||
GL.Uniform1(shader["weightRamp1"], 11);
|
||||
|
@ -534,7 +534,7 @@ namespace FirstPlugin
|
|||
public static int BindTexture(MatTexture tex, bool IsWiiU)
|
||||
{
|
||||
GL.ActiveTexture(TextureUnit.Texture0 + tex.textureUnit + 1);
|
||||
// GL.BindTexture(TextureTarget.Texture2D, RenderTools.defaultTex.Id);
|
||||
GL.BindTexture(TextureTarget.Texture2D, RenderTools.defaultTex.Id);
|
||||
|
||||
string activeTex = tex.Name;
|
||||
if (tex.animatedTexName != "")
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue