From ecf8357e7b733541b8d2e76cef182119710456b6 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sun, 21 Jun 2020 02:32:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Geometry3D=E8=8C=83=E4=BE=8B?= =?UTF-8?q?=E4=B8=AD=E6=B2=A1=E6=9C=89=E9=87=8A=E6=94=BEubo=5Fcolor?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMSceneGraph | 2 +- example/Vulkan/Geometry3D.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMSceneGraph b/CMSceneGraph index 3714dd10..fccbd425 160000 --- a/CMSceneGraph +++ b/CMSceneGraph @@ -1 +1 @@ -Subproject commit 3714dd1016363bb3c0791c33bc7e14cad672a810 +Subproject commit fccbd425e23f0b82f2953313fd8bacf7a01c5379 diff --git a/example/Vulkan/Geometry3D.cpp b/example/Vulkan/Geometry3D.cpp index 53cf534d..0ec5fefb 100644 --- a/example/Vulkan/Geometry3D.cpp +++ b/example/Vulkan/Geometry3D.cpp @@ -141,6 +141,8 @@ private: ro_round_rectangle=CreateRenderableRoundRectangle(db,m2d.material,&rrci); } + + camera.eye.Set(200,200,200,1.0); } public: @@ -164,6 +166,8 @@ public: m2d.material_instance->BindUBO("color_material",ubo_color); m2d.material_instance->Update(); + + db->Add(ubo_color); } CreateRenderObject();