This commit is contained in:
2026-04-12 16:40:54 +07:00
parent d163609854
commit 2fe83bfb1f
31 changed files with 1153 additions and 2 deletions
@@ -152,6 +152,26 @@ namespace InfiniteWorld.VoxelWorld
material.SetTexture("_TextureArray", textureArray);
}
if (material.HasProperty("_UseTextureArray"))
{
material.SetFloat("_UseTextureArray", 1f);
}
if (material.HasProperty("_UseBaseMap"))
{
material.SetFloat("_UseBaseMap", 0f);
}
if (material.HasProperty("_UseLightMap"))
{
material.SetFloat("_UseLightMap", 0f);
}
if (material.HasProperty("_UseFog"))
{
material.SetFloat("_UseFog", 1f);
}
if (material.HasProperty("_BaseColor"))
{
material.SetColor("_BaseColor", Color.white);