What this component contains
ATTRIBUTION.mdLICENSEREADME.mdcomponent.jsondemo.tscninspect_shader.pymaterial.trespreview.pngsprite_ground_shadow.gdshadertest_package.pyverification/native.json
How it works
- Shader type
- canvas_item
- Parameters
- shadow_color (vec4 = 0.05, 0.05, 0.1, 0.5), flatten (float = 0.45), skew (float = 1.1), base_v (float = 1), fade (float = 0.6), sway (float = 0)
- Use it on
- A second sprite node with the same texture, placed at the character's position and drawn first.
- Result
- A sprite standing on the ground with a flattened dark shadow stretching to its lower right.
- Renderers
- compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
- Placement
- res://baltor/godot_shaders/sprite_ground_shadow/
Recorded checks
godot 4.7.2.stable.official.ed1daf0bf
contract_staticengine_runengine_log_cleanshader_in_scenecapture_writtenrender_not_uniformshader_changes_pixels
Limits to consider
Use a second node with the same texture and this material, drawn before the character (as in the demo). The shadow is a projection of the sprite outline, not lit by Godot's 2D lights, and does not bend over terrain.