添加圆心遮罩
This commit is contained in:
+14
-3
@@ -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;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user