used newly GetColor3f/4f

This commit is contained in:
2022-03-11 17:38:21 +08:00
parent 59858360da
commit 07092da047
5 changed files with 9 additions and 7 deletions

View File

@@ -20,6 +20,7 @@
#include<hgl/graph/VKRenderTarget.h>
#include<hgl/graph/VKRenderResource.h>
#include<hgl/graph/RenderList.h>
#include<hgl/type/Color.h>
#include<hgl/Time.h>
//#include<hgl/graph/LookAtCameraControl.h>
@@ -170,9 +171,9 @@ public:
ubo_camera_info->Write(&camera->info);
}
void SetClearColor(COLOR cc)
void SetClearColor(const Color4f &cc)
{
clear_color.Use(cc,1.0);
clear_color=cc;
}
void OnResize(uint w,uint h) override