From f76235ef5c2dbba96e367c9906da49cbc34678a1 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 9 Jul 2020 13:26:39 +0800 Subject: [PATCH] update example Atomsphere --- example/Vulkan/Atomsphere.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/Vulkan/Atomsphere.cpp b/example/Vulkan/Atomsphere.cpp index dea8100b..0499de6a 100644 --- a/example/Vulkan/Atomsphere.cpp +++ b/example/Vulkan/Atomsphere.cpp @@ -59,7 +59,7 @@ private: ro_sphere=CreateRenderableSphere(db,material,128); } - bool InitAtomsphereUBO(vulkan::MaterialInstance *mi,const UTF8String &sun_node_name) + bool InitAtomsphereUBO(vulkan::MaterialInstance *mi,const AnsiString &sun_node_name) { atomsphere_data.position.Set(0,0.1f,-1.0f); atomsphere_data.intensity=22.0f; @@ -75,7 +75,7 @@ private: bool InitUBO() { - if(!InitCameraUBO(material_instance,"world")) + if(!material_instance->BindUBO("world",GetCameraMatrixBuffer())) return(false); if(!InitAtomsphereUBO(material_instance,"sun"))