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