godotengine / godotengine/godot-docs
Assigning to COLOR in fragment() gives error "Constants cannot be modified."
Open
area:manual
discussion
topic:shaders
- Dominant language
- reStructuredText
- Stars
- 5.7k
- Forks
- 3.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 25
Description
**Your Godot version:** 4.7 RC2
**Issue description:** The intro documentation page on shaders has example code that would produce the error "Constants cannot be modified.". COLOR is only an input variable to fragments and cannot be output. The code is incomplete anyway but can be misleading.
**URL to the documentation page:** https://docs.godotengine.org/en/stable/tutorials/shaders/introduction_to_shaders.html
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.