コード例 #1
0
        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);
        }
コード例 #2
0
        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;
        }