Skip to content

Instantly share code, notes, and snippets.

@PurpBatBoi
PurpBatBoi / sunshine_style_water.gdshader
Last active October 31, 2025 19:41
created this shader that mimics the water rendering in super mario sunshine
shader_type spatial;
render_mode unshaded, blend_add, depth_draw_always;
uniform sampler2D texture_lod_0 : hint_default_black;
uniform sampler2D texture_lod_1;
uniform sampler2D texture_lod_2;
uniform sampler2D texture_lod_3;
uniform float lod1_distance : hint_range(0.1, 50, 0.05) = 5.0;
uniform float lod2_distance : hint_range(0.1, 100, 0.05) = 20.0;