添加圆心遮罩

This commit is contained in:
xsl
2026-01-08 21:19:32 +08:00
parent b44162e6cb
commit 60b40bfd5f
11 changed files with 96 additions and 22 deletions
+14 -3
View File
@@ -38,13 +38,23 @@ struct InitArg
{
int action_fps;
float zoom;
float r;
float g;
float b;
float radius;
//Motion motion;
NLOHMANN_DEFINE_TYPE_INTRUSIVE(InitArg, action_fps, zoom);
NLOHMANN_DEFINE_TYPE_INTRUSIVE(InitArg, action_fps, zoom, r, g, b, radius);
};
struct PushConstants {
float myValue;
float zoom = 0.5f;
float r = 0;
float g = 0;
float b = 0;
float radius = 240;
float ux = 0;
float uy = 0;
};
using Callback = std::function<void()>;
@@ -149,7 +159,8 @@ private:
float myFloatValue = 1.5f;
//float myFloatValue = 1.5f;
PushConstants pushConstants;