
What this component contains
ATTRIBUTION.mdLICENSEREADME.mdcomponent.jsondemo.tscninspect_shader.pymaterial.trespreview.pngramp_texture_lighting.gdshadertest_package.pyverification/native.json
How it works
- Shader type
- spatial
- Parameters
- light_ramp (sampler2D), albedo (vec4 = 1, 1, 1, 1), ramp_offset (float = 0), specular_size (float = 0.12), specular_strength (float = 0.6), rim_amount (float = 0.3), rim_width (float = 0.25)
- Use it on
- A ramp texture; edit the bundled GradientTexture1D or assign any horizontal gradient image.
- Result
- Shapes shaded from purple shadows through an orange edge to warm white light.
- Renderers
- compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
- Placement
- res://baltor/godot_shaders/ramp_texture_lighting/
Recorded checks
godot 4.7.2.stable.official.ed1daf0bf
contract_staticengine_runengine_log_cleanshader_in_scenecapture_writtenrender_not_uniformshader_changes_pixels
Limits to consider
Each light samples the ramp separately and adds, so several lights brighten past the ramp. Ambient light does not use the ramp. A ramp with sharp steps aliases at grazing angles.