mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-02 15:53:51 +00:00
Vulcan Nightmare
Experimentally bringing up vulcan support
This commit is contained in:
parent
863a786c48
commit
83b576e8d9
189 changed files with 12147 additions and 7820 deletions
19
assets/shaders/selection_circle.frag.glsl
Normal file
19
assets/shaders/selection_circle.frag.glsl
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#version 450
|
||||
|
||||
layout(push_constant) uniform Push {
|
||||
mat4 mvp;
|
||||
vec4 color;
|
||||
} push;
|
||||
|
||||
layout(location = 0) in vec2 vLocalPos;
|
||||
|
||||
layout(location = 0) out vec4 outColor;
|
||||
|
||||
void main() {
|
||||
float r = length(vLocalPos);
|
||||
float ring = smoothstep(0.93, 0.97, r) * smoothstep(1.0, 0.97, r);
|
||||
float inward = (1.0 - smoothstep(0.0, 0.93, r)) * 0.15;
|
||||
float alpha = max(ring, inward);
|
||||
if (alpha < 0.01) discard;
|
||||
outColor = vec4(push.color.rgb, alpha);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue