/// <summary> /// If the material uses LC_Shader, comunicates the information required. /// </summary> protected void SetRenderMaterial() { // If RenderMaterial uses LC_Shader RenderMaterial.SetInt("LC_RenderType", (int)RenderType); if (RenderType != LC_Terrain_RenderType.DEFAULT_UVs) { RenderMaterial.SetFloat("minHeight", transform.position.y); RenderMaterial.SetFloat("maxHeight", transform.position.y + MaxHeight); RenderMaterial.SetInt("numColors", HeightShaderColors.Length); RenderMaterial.SetColorArray("colors", HeightShaderColors); } }