Merge branch 'master' of https://github.com/evol3d/evol-sandbox
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
"components": [
|
"components": [
|
||||||
{
|
{
|
||||||
"type": "TransformComponent",
|
"type": "TransformComponent",
|
||||||
"position": [0.0, 0.0, 5.0],
|
"position": [0.0, -2.0, -11.0],
|
||||||
"rotation": [0.0, 0.0, 0.0],
|
"rotation": [0.0, 0.0, 0.0],
|
||||||
"scale": [1.0, 1.0, 1.0]
|
"scale": [1.0, 1.0, 1.0]
|
||||||
},
|
},
|
||||||
@@ -243,5 +243,43 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"materials": [
|
||||||
|
{
|
||||||
|
"id": "GreenMaterial",
|
||||||
|
"pipeline": "DefaultPipeline",
|
||||||
|
"baseColor": [0.0, 1.0, 0.0, 1.0]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "RedMaterial",
|
||||||
|
"pipeline": "DefaultPipeline",
|
||||||
|
"baseColor": [1.0, 0.0, 0.0, 1.0]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "BlueMaterial",
|
||||||
|
"pipeline": "DefaultPipeline",
|
||||||
|
"baseColor": [0.0, 0.0, 1.0, 1.0]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "WhiteMaterial",
|
||||||
|
"pipeline": "DefaultPipeline",
|
||||||
|
"baseColor": [1.0, 1.0, 0.0, 1.0]
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
|
"pipelines": [
|
||||||
|
{
|
||||||
|
"id": "DefaultPipeline",
|
||||||
|
"shaderStages": [
|
||||||
|
{
|
||||||
|
"type": "Vertex",
|
||||||
|
"shaderPath": "shaders://default.vert"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "Fragment",
|
||||||
|
"shaderPath": "shaders://default.frag"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"activeCamera": "Camera.RotationHelper"
|
"activeCamera": "Camera.RotationHelper"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -128,5 +128,43 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"materials": [
|
||||||
|
{
|
||||||
|
"id": "GreenMaterial",
|
||||||
|
"pipeline": "DefaultPipeline",
|
||||||
|
"baseColor": [0.0, 1.0, 0.0, 1.0]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "RedMaterial",
|
||||||
|
"pipeline": "DefaultPipeline",
|
||||||
|
"baseColor": [1.0, 0.0, 0.0, 1.0]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "BlueMaterial",
|
||||||
|
"pipeline": "DefaultPipeline",
|
||||||
|
"baseColor": [0.0, 0.0, 1.0, 1.0]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "WhiteMaterial",
|
||||||
|
"pipeline": "DefaultPipeline",
|
||||||
|
"baseColor": [1.0, 1.0, 0.0, 1.0]
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
|
"pipelines": [
|
||||||
|
{
|
||||||
|
"id": "DefaultPipeline",
|
||||||
|
"shaderStages": [
|
||||||
|
{
|
||||||
|
"type": "Vertex",
|
||||||
|
"shaderPath": "shaders://default.vert"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "Fragment",
|
||||||
|
"shaderPath": "shaders://default.frag"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"activeCamera": "Camera"
|
"activeCamera": "Camera"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1459,5 +1459,43 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"materials": [
|
||||||
|
{
|
||||||
|
"id": "GreenMaterial",
|
||||||
|
"pipeline": "DefaultPipeline",
|
||||||
|
"baseColor": [0.0, 1.0, 0.0, 1.0]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "RedMaterial",
|
||||||
|
"pipeline": "DefaultPipeline",
|
||||||
|
"baseColor": [1.0, 0.0, 0.0, 1.0]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "BlueMaterial",
|
||||||
|
"pipeline": "DefaultPipeline",
|
||||||
|
"baseColor": [0.0, 0.0, 1.0, 1.0]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "WhiteMaterial",
|
||||||
|
"pipeline": "DefaultPipeline",
|
||||||
|
"baseColor": [1.0, 1.0, 0.0, 1.0]
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
|
"pipelines": [
|
||||||
|
{
|
||||||
|
"id": "DefaultPipeline",
|
||||||
|
"shaderStages": [
|
||||||
|
{
|
||||||
|
"type": "Vertex",
|
||||||
|
"shaderPath": "shaders://default.vert"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "Fragment",
|
||||||
|
"shaderPath": "shaders://default.frag"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"activeCamera": "CameraTransformOverride.Camera.RotationHelper",
|
"activeCamera": "CameraTransformOverride.Camera.RotationHelper",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -173,6 +173,7 @@ load_project()
|
|||||||
evstring_free(path_id);
|
evstring_free(path_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Renderer->setWindow((GenericHandle)State.window);
|
||||||
|
|
||||||
// Loading Scenes
|
// Loading Scenes
|
||||||
double scene_count = evjs_get(project_desc.json_data, "scenes.len")->as_num;
|
double scene_count = evjs_get(project_desc.json_data, "scenes.len")->as_num;
|
||||||
@@ -197,16 +198,15 @@ load_project()
|
|||||||
}
|
}
|
||||||
|
|
||||||
evstring_free(project_dir);
|
evstring_free(project_dir);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
unload_project()
|
unload_project()
|
||||||
{
|
{
|
||||||
|
evol_unloadmodule(State.renderer_mod);
|
||||||
evol_unloadmodule(State.game_mod);
|
evol_unloadmodule(State.game_mod);
|
||||||
evol_unloadmodule(State.input_mod);
|
evol_unloadmodule(State.input_mod);
|
||||||
evol_unloadmodule(State.window_mod);
|
evol_unloadmodule(State.window_mod);
|
||||||
evol_unloadmodule(State.renderer_mod);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
|
|||||||
Reference in New Issue
Block a user