Skip to content

Latest commit

 

History

History
39 lines (22 loc) · 1.94 KB

README.md

File metadata and controls

39 lines (22 loc) · 1.94 KB

Godot 4 Complete Cel Shader

This project is a demo of my Cel Shader for Godot 4. This is a continuation of this project, the old version of this shader for Godot 3. Feel free to mess around with it and study!

godotshaders.com link

Youtube video

Instructions

Just put cel-shader-base.gdshader and the includes folder on your project, on the same folder. Then, go to Project Settings > Shader Globals and set the following:

float specular_smoothness = 0.05
float fresnel_smoothness = 0.05
float outline_width = 4
color outline_color = black

These values are the ones that made this screenshot you're seeing, but feel free to mess around with these values.

Whenever you want a material with one of the additional features, make a copy of cel-shader-base.gdshader and change the defines.

This is how the defines look on cel-shader-base.gdshader. For each feature you want, change the 0 to 1 and the additional uniforms should show up on the material. You can see the demo as an example.

Lastly, you can watch the Youtube video for more information on how the base functions work and how to set it up.

License

All code is licensed under the MIT license.

Credits

Shader, demo and assets by me, Rafael Bordoni. The skybox shader is this one, by axilirate. The fog shader is this one, by alghost.