public static Impostor GenerateImpostor(float size, int textureSize, float textureScale, Mesh mesh, Material[] materials, int layer) { Texture2D frontTexture = GenerateTexture(textureSize, textureScale, mesh, materials, layer); // create impostor Impostor impostor = new Impostor(); impostor.mesh = CreateMesh(size); impostor.texture = frontTexture; return(impostor); }
public static Impostor GenerateImpostor(float size, int textureSize, float textureScale, Mesh mesh, Material[] materials, int layer) { Texture2D frontTexture = GenerateTexture(textureSize, textureScale, mesh, materials, layer); // create impostor Impostor impostor = new Impostor(); impostor.mesh = CreateMesh(size); impostor.texture = frontTexture; return impostor; }