添加圆心遮罩

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
+6 -2
View File
@@ -17,7 +17,11 @@ layout (location = 0) out vec2 outUV;
layout (location = 1) out vec3 outNormal;
layout(push_constant) uniform PushConstants {
float myValue;
float zoom;
float r;
float g;
float b;
float radius;
float ux;
float uy;
} pushConstants;
@@ -32,7 +36,7 @@ void main()
outUV = inUV;
vec2 position = vec2(inPos.xy*2 -1);
position = position * pushConstants.myValue;
position = position * pushConstants.zoom;
gl_Position = vec4(position, 0.5, 1.0);
vec4 pos = ubo.model * vec4(inPos, 1.0);