1
0
mirror of synced 2024-11-28 17:30:57 +01:00

Adjust bone size for botw automatically based on shader name

This commit is contained in:
KillzXGaming 2019-05-14 18:51:57 -04:00
parent 2211d3d352
commit 5c91e66c08
5 changed files with 8 additions and 6 deletions

Binary file not shown.

View File

@ -324,7 +324,12 @@ namespace FirstPlugin
if (models[0].shapes.Count > 0)
{
if (models[0].shapes[0].GetMaterial().shaderassign.ShaderModel == "uking_mat")
{
shader = BotwShaderProgram;
//Botw uses small models so lower the bone size
Runtime.bonePointSize = 0.040f;
}
}
}

View File

@ -46,14 +46,11 @@ namespace Switch_Toolbox.Library.Rendering
GL.Enable(EnableCap.DepthTest);
GL.DepthFunc(DepthFunction.Lequal);
/* GL.Enable(EnableCap.CullFace);
GL.CullFace(CullFaceMode.Front);
GL.Enable(EnableCap.LineSmooth);
GL.Enable(EnableCap.LineSmooth);
GL.Enable(EnableCap.StencilTest);
GL.StencilOp(StencilOp.Keep, StencilOp.Keep, StencilOp.Replace);
GL.Enable(EnableCap.StencilTest);
GL.StencilOp(StencilOp.Keep, StencilOp.Keep, StencilOp.Replace);
*/
control.CurrentShader = defaultShaderProgram;
// enable seamless cubemap sampling for lower mip levels in the pre-filter map.