Image 1 — Rings with constant thickness
Image 2 — Rings with constant thickness
▲ 9 r/opengl

Rings with constant thickness

Hello everyone, I am trying to create rings with their thickness the same as I scale them. I created a quad and let the fragment shader handle the work, for some reason whenever I scale them up they get thicker. I'm still very new to OpenGL and GLSL, I would appreciate your help on this problem. 🙏🙏

Here is my fragment shader:

#version 330 core

in vec2 vPos;

out vec4 fragColor;

void main()

{

float ring = smoothstep(1.0, 0.99, length(vPos));

ring -= smoothstep(0.95, 0.94, length(vPos));

if (length(vPos) > 0.995)

discard;

if (length(vPos) < 0.943)

discard;

fragColor = vec4(vec3(ring), 1.0);

}

u/Frostlit3 — 11 days ago

Identifying font from a few characters

I have been trying to find this font for 3 hours, my CSS files says it's Maple Mono NF CN but I don't remember downloading that font and it's not even the same thing. These are the only pictures I have of them please find this font 🙏

u/Frostlit3 — 26 days ago
▲ 1 r/Oppo

So I only want Game Space to be enabled in one game for the touch optimization feature, but for some reason, every day or so, it enables itself in other games that I don't want to. How do I disable this strange behavior? I don't see it in the settings... Please help 🙏🙏

reddit.com
u/Frostlit3 — 1 month ago