Tech article

First Shader from Zero in Godot 4

No preview is available. Read the original article for the full story.

Hacker News | Sep 21, 2026 | ibobev

Automated excerpt

While we're at it, let's also go back to naming the overall shape's radius just radius:Radius 0. 4Rim Width 0. 05Softness 0. 01uniform float radius_outer: hint_range(0. 0, 0. 5) = 0. 4; uniform float radius_inner: hint_range(0. 0, 0. 5) = 0. 3; uniform float radius: hint_range(0. 0, 0. 5) = 0. 4; uniform float rim_width: hint_range(0. 0, 0. 3) = 0. 05; uniform float softness: hint_range(0. 0, 0. 2) = 0. 01; vec3 portal_color = vec3(0. 23, 0. 35, 0. 65); You create a shader by narrowing it down to its building blocks.

Selected automatically from source text; not independently written or fact-checked. Read the original for full context.

Read the original article

More tech news