1
Fork 0

Include example models in misc/ folder, rename load button for clarity

This commit is contained in:
Joshua Goins 2022-08-16 07:33:10 -04:00
parent d0c9d1cd69
commit c707efbd8c
3 changed files with 2090 additions and 3 deletions

16
misc/plane.obj Normal file
View file

@ -0,0 +1,16 @@
# Blender v3.1.2 OBJ File: ''
# www.blender.org
mtllib plane.mtl
o Plane
v -1.000000 0.000000 1.000000
v 1.000000 0.000000 1.000000
v -1.000000 0.000000 -1.000000
v 1.000000 0.000000 -1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vn 0.0000 1.0000 0.0000
usemtl None
s off
f 1/1/1 2/2/1 4/3/1 3/4/1

2071
misc/sphere.obj Normal file

File diff suppressed because it is too large Load diff

View file

@ -276,11 +276,11 @@ int main(int, char*[]) {
if(ImGui::BeginMainMenuBar()) {
if(ImGui::BeginMenu("File")) {
if(ImGui::Button("Load")) {
auto& sphere = scene.load_from_file("sphere.obj");
if(ImGui::Button("Load Example Models")) {
auto& sphere = scene.load_from_file("misc/sphere.obj");
sphere.color = {0, 0, 0};
auto& plane = scene.load_from_file("plane.obj");
auto& plane = scene.load_from_file("misc/plane.obj");
plane.position.y = -1;
plane.color = {1, 0, 0};