Test
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user