Godot 4 Simple Outline Shader

preview_player
Показать описание
Quick tutorial on how to make an outline shader in Godot 4!

Original shader code by LopkaUna:
Рекомендации по теме
Комментарии
Автор

I am aware that the shader has some issues. I am working on an updated video.

Gwizz
Автор

today i learned that i know nothing about shaders

mrtomithy
Автор

Ooo this is cool!
Seems pretty modular too since you can put it on anything with the "Next Pass" material.
Also, thanks for sharing the Godot shaders website. Definitely going to be coming back there for some cool visual effects.

redalchemy
Автор

i have no idea how any of this works, but i still enjoyed the vid

stripes
Автор

Hi. Thanks for the tutorial. The outline doesn't seem to render over the top of any objects that are behind the outlined object - is there a workaround for this?

abject_ladder
Автор

It seems shader is a separate discussion that you are unable to understand or told us what things work hahaha

rogelioayus
Автор

this looks great the but the outline only renders where there are no other nodes behind it. do you know how it could be tweaked to address this?

ghilshh
Автор

So much mega great practical useful thing in just 5 minutes! <3

NexusBaum
Автор

YOU MY MAN ARE A KING. THANK YOU SO MUCH!

kemalbasic
Автор

This only works if there's the sky behind the model. If there are other models (the floor, a building, another character) then the outline doesn't show.
Edit: It also cuts *into* the model, instead of being an actual OUTline

TheFilipFonky
Автор

Sticking out your GYATT for the Gwizzler

MisterBones
Автор

Thank you for your free content!
Much love from Bangladesh 🙏🏼🙏🏼🙏🏼

queblegamedevelopment
Автор

This is a great idea to enter to the shaders tutorial, is very hard even in the visual script XD

HatycokeDev
Автор

The outline does not appear if there is anything behind the object.

Planetrefactor
Автор

Does this method work for 3D models exported to godot?

Pumpkyn_I
Автор

Note to self: shader doesn't work with the Compatibility rendering

AnkorIsGood
Автор

The shader works when i just have a scene with the object but for some reason when i show it in my world it seems to cut of corners when i look at it from another angle. is there some setting i need to enable?

Kireita
Автор

How can I make the outline not stay the same and have a fixed size which is visible however far you are from the object? Right now the outline size stays the same no matter how far I am, and that is not what I want.

Brekfestus
Автор

Let me just ask please, I did this. And it works in the scene where the object is. I have it under a node3d as a base node, and the material is applied to a mesh on a child node. It works and shows both at runtime and in the editor in the scene in which it is created. But when I instantiate a car (the game is a cute little car game) in my level scene the shader doesn´t show. I checked both the make local scene thingy but it won´t show up. Any thoughts?

kemalbasic
Автор

Can you make a tutorial on how to create a skin section. Where you can choose which player you want to play as (change the skin of the main character) in 2d

Neelonmusk