Adjust bone size for botw automatically based on shader name
This commit is contained in:
parent
2211d3d352
commit
5c91e66c08
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user