Beispiel #1
0
 public static void PostProcess()
 {
     JETexture.PostProcess();
     JEShader.PostProcess();
     JEMaterial.PostProcess();
     JELightmap.PostProcess();
     JEMesh.PostProcess();
 }
Beispiel #2
0
 public static void Reset()
 {
     JEMesh.Reset();
     JEMaterial.Reset();
     JETexture.Reset();
     JEShader.Reset();
     JELightmap.Reset();
 }
Beispiel #3
0
 public static void Process()
 {
     JETexture.Process();
     JEShader.Process();
     JEMaterial.Process();
     JELightmap.Process();
     JEMesh.Process();
     JESprite.Process();
     JEParticle.Process();
 }
Beispiel #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);
        }
Beispiel #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);
        }