Exemple #1
0
 public static void PostProcess()
 {
     JETexture.PostProcess();
     JEShader.PostProcess();
     JEMaterial.PostProcess();
     JELightmap.PostProcess();
     JEMesh.PostProcess();
 }
Exemple #2
0
 public static void Reset()
 {
     JEMesh.Reset();
     JEMaterial.Reset();
     JETexture.Reset();
     JEShader.Reset();
     JELightmap.Reset();
 }
Exemple #3
0
 public static void Process()
 {
     JETexture.Process();
     JEShader.Process();
     JEMaterial.Process();
     JELightmap.Process();
     JEMesh.Process();
     JESprite.Process();
     JEParticle.Process();
 }
Exemple #4
0
        public static JSONResources GenerateJSONResources()
        {
            var json = new JSONResources();

            json.textures  = JETexture.GenerateJSONTextureList();
            json.lightmaps = JELightmap.GenerateJSONLightmapList();
            json.shaders   = JEShader.GenerateJSONShaderList();
            json.materials = JEMaterial.GenerateJSONMaterialList();
            json.meshes    = JEMesh.GenerateJSONMeshList();

            return(json);
        }
Exemple #5
0
        private JEMaterial(Material material)
        {
            this.unityMaterial     = material;
            this.index             = allMaterials.Count;
            this.name              = material.name;
            allMaterials[material] = this;

            Texture2D _texture = material.mainTexture as Texture2D;

            if (_texture != null)
            {
                texture = JETexture.RegisterTexture(_texture);
            }

            shader = JEShader.RegisterShader(material.shader);
        }