NOTICE: Uses .net 7. Does not use standard lighting, instead uses a custom object to create a light direction. This is intended so that the artists have full control over the light angle like in a lot of anime toon shading applications. Repository has documentation.A toon shader system that comes with a custom light solution, and is based off of various anime toon shading techniques. Basic how to use: Add a CharacterLight object, then add the materials you want to control to the array of ShaderMaterials.
Three shaders to generate 3D animated planets and stars in Godot 4:- Planet body generation shader- Cloud generation shader- Astmosphere generation shaderThe project contains seven example planets:- No atmosphere planet- Terrestrial planet- Ice planet- Lava planet- Sand planet- Gaseous planet- StarFAQ and more information: https://naejimer.itch.io/godot-3d-planet-generator
This contains a simple atmosphere shader usable on planets. I developped this for a tech demo I'm working on, so I thought of making it an addon.- Comes in two versions, one with fake colors and another with light scattering- Can be seen from inside like regular fog if you want to land on the planet- Switches to a cube mesh when seen from far away so multiple atmospheres can be drawn at lower cost- Includes experimental volumetric cloudsChanges in 0.4:- Added `force_fullscreen` option to allow previewing the inside of the atmosphere in the editor- Added atmosphere ambient color to v2 atmosphere so nights are no longer pitch black- Added `*_shader_parameter()` methods, deprecated `*_shader_param` methods- Slightly improved clouds alpha blending- Decoupled alpha from color in v2 atmosphere so it no longer stops rendering in the dark side of planets- Fixed properties list not updating when setting a different shaderChanges in 0.3:- Added more realistic atmosphere model based on Sebastian Lague's Coding Adventure- Added automatic optical depth baking using a viewport (Vulkan renderer not needed)- Added raymarched and animated clouds (current version is imperfect due to tradeoffs)- Added NoiseCubemap resource to generate procedural cloud coverage textures- Added small demoChanges in 0.2:- Ported to Godot 4- Added option to blend ground depth with a sphere, to hide precision lost at high distances
Voxel rendering for Godot 4 based on an efficient 2-level DDA algorithm implemented 100% on the GPU as a fragment shader.This approach allows for good performance and opens up the possibility of making runtime changes to voxels at a relatively low cost.Please see the detailed description on GitHub.
Simple shader that allows for create animations similar to palette cycling. Make a grayscale sprite and a gradient, put a ShaderMaterial on the sprite and assign the gradient and it will animate. See the example project for usage.Caveats for best effect:- the node with shader should have texture_filter set to Nearest- number of colors in the gradient and base texture should match- gray shades in the base texture should be uniformly distributed (i.e. with equal increments between colors)Check out the repo page for animated example.
This addon contains two shaders meant to be used as a material for terrain objects. The shaders support color, normal, roughness and metallic maps. They also provide a tile scrambling feature that gets rid of obvious repeated patterns. You can also stack several different terrain shader on top of each other and use masks to blend between them.
Fake interior shader with use single texture for roomPort of this shader: https://forum.unity.com/threads/interior-mapping.424676/#post-2751518Interior mapping shader which instead of cubemap, it uses texture atlas with room tiles that are front room view automatically mapped into a cube. The alpha channel value - uniform for whole tile - is used to determine the rear wall's relative distance.
Volume rendering, implemented in Godot Engine.
A shader that changes sprite colors based on provided palette. Top row of palette are color references; these colors are sampled from the original image and replaced by colors from subsequent rows. The shader will cycle between palette rows, resulting in an animation. By default, the reference row is also part of the animation, but it can be skipped. 2-row palette with first row skipped results in a static palette swap.The shader will automatically adjust to palette size, so it requires minimal setup (just drop palette image and it works). It uses integer comparison for the colors, so it's fast and perfectly accurate. I also made sure that the code is optimized.You can use the alpha from palette colors or keep the original. When using palette alpha, keep in mind that transparent pixels are sampled too. Only RGB values are sampled, alpha is used only for final image.Warning: Be sure to set texture_filter property to Nearest. Also, while the palette size is only limited by maximum texture size, having too many columns (hundreds/thousands) will impact performance.The shader comes bundled with a file PaletteGenerator.gd. It's an editor script for quick generating palettes from images. Select a Sprite or any node with texture property and in Script Editor do File -> Run to generate a palette template.Check the example project for some usage examples or check the repo for more details.
# motion-blur-godot-4.0A motion blur plugin created by Bauxitedev, ported to Godot 4.0To use this plugin in your game, do the following:1) Copy the motion-blur folder to your project directory.2) Select the camera you want to apply motion blur to, and click the 'link' button above the scene tree to instance a scene.3) Select the 'motion_blur.tscn' file, and click Open.If you want to customize the blur:1) Select the motion_blur node2) Click 'Surface Material Override' in the inspector under MeshInstance3D.3) Click 'Shader Parameters'4) Mess with the Intensity, Iteration Count, and Start Radius until you have the effect you'd like.Original plugin by Bauxitedev for Godot 3:https://godotengine.org/asset-library/asset/211
This addon aims to help Godot developers writing custom written shaders by providing high-level functions which are often used inside gdshaderinclude files.
Convert Shaders 3.x to GDShaders 4.x
Adds an outer or inner stroke to a texture. Just attach the shader to a ShaderMaterial and the ShaderMaterial to a Sprite2D or AnimatedSprite2D. Less suitable for textures with anti-aliased edges. Shader parameters:- color- width- pattern (diamond, circle, square)- inside- add_margins (to make room for an outline)- number_of_images (number of horizontal and vertical images in the sprite sheet)When using a sprite sheet: if the images contain a few semi-transparent pixels from adjacent images, try increasing the 0.0 at lines 41 and 69 to a value like 0.1.
The Glow Boarder Effect Renderer contains shader setup with a glowing boarder effect for selected objects. The user can turn the glow border effect on and off and select glow color for individual objects.
A plugin to make writing compute shaders less painful. Supports Godot 4.0+, tested up to version 4.4dev2.
Split texture, stochastic sampling, triplanar projection shader for Godot4
This is a shader that implements a chroma key effect. Chroma keying is a technique used to remove a specific color (usually green or blue) from an image or video, making it transparent and allowing other content to show through.The shader provides RGB Comparison options for the chroma key effect.
This addon comes with Visual Shader library of nodes such as a huge library of blending modes, SDF (signed distance field) shapes, procedural noise and patterns, UV utilities and other nodes.
This is a visual shader addon that adds the HeightBlend node to the visual shader editor.
This is a visual shader addon that adds the UVManipulation node to the visual shader editor.
Headbanging against the keyboard, done for you.
Original Addon for Godot 3 by CaptainProton42 ported to Godot 4A flexible toon shader for the Godot Engine with many features:🤸Flexibility through parameters like number of cuts/bands, steepness, and wrap🎨 Supports custom color ramps🌈 Affected by the colors of light sources and ambient light in the scene💡 Allows for multiple light sources⛱️ Supports shadows and attenuation✨ Visual extras like specular reflections and rim lighting🖼️ Supports textures for albedo and specularNew:✏️ Experimental toon hatching shader (available as a separate material)
Adds many premade 2D effects (such as noise, blur, emboss, zoom, custom shapes, etc.) to build-in VisualShader editor. You can find basic usage examples in the "addons/shaderV/examples" folder.Copy the contents of "addons/shaderV" into the same folder in your project. Custom visual shader nodes work the same way as standard visual shader nodes.As all shaders sources are .gdshaderinc files, it is also possible to use this plugin with usual text shaders.
Instead of fading to alpha, this shader fades to dither to achieve the same effect.