More work with the dissolve shader

I noticed that the shader was not showing shadows properly and also there were alpha issues with any meshes that had occluded faces. This is due to modifying the ALPHA value in the shader. I was able to resolve it by enabling a render setting for godot shaders called depth_prepass_alpha. shader_type spatial; // This is needed for toroids and other objects with faces behind other faces. // It also allows for shadows on meshes with this shader....

March 1, 2024 · partkyle

Shader Joy - Vertical Disolving Effect via Godot Shaders

I decided to experiment with some shaders in godot. I was able to get something working nice enough that I figured I should write it up. Here’s what it looks like. It’s a simple shader that fades out from the top of the object down. Here is the gdshader code for reference shader_type spatial; uniform sampler2D noise_texture; uniform vec3 base_color : source_color = vec3(0.0, 1.0, 0.0); // The height of the dissolve effect....

February 28, 2024 · partkyle