Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# moebius_shader
Project for Godot 4.2.2 (last stable version)
Project for Godot 4.5

This is a demo of a shader that makes your scene look like A Moebius' cartoon (kindof). It adds wobbly outlines, quantized shadows and different hatches in dark zones.
It is heavily inspired from UselessDev demo you can find here:
https://www.youtube.com/watch?v=jlKNOirh66E&t=1s
Expand Down
4 changes: 2 additions & 2 deletions moebius.gdshader
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const mat3 Sx = mat3(
);

void vertex() {
POSITION = vec4(VERTEX, 1.0);
POSITION = vec4(VERTEX.xy, 1.0, 1.0);
}

// Retrieve and scale depth from the depth buffer
Expand Down Expand Up @@ -151,4 +151,4 @@ void fragment() {
float outline = smoothstep(0.0,1.0, 25.0*edgeDepth + edgeNormal);
// Mix color and edges
ALBEDO = mix(pixelColor, outlineColor, outline);
}
}