Test
This commit is contained in:
1 parent
d163609854
commit
2fe83bfb1f
31 files changed
+1153
-2
No files matched your search
@@ -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