Skip to content

Mention shader type in Introduction to shaders#12063

Merged
mhilbrunner merged 1 commit into
godotengine:masterfrom
Calinou:introduction-to-shaders-type
Jun 25, 2026
Merged

Mention shader type in Introduction to shaders#12063
mhilbrunner merged 1 commit into
godotengine:masterfrom
Calinou:introduction-to-shaders-type

Conversation

@Calinou

@Calinou Calinou commented Jun 15, 2026

Copy link
Copy Markdown
Member

The first shader example is a valid canvas_item shader, but not a valid spatial shader as COLOR is read-only in spatial's fragment() (it reads the vertex color).

@Calinou Calinou requested review from a team as code owners June 15, 2026 23:32
@Calinou Calinou added enhancement area:manual Issues and PRs related to the Manual/Tutorials section of the documentation topic:shaders labels Jun 15, 2026
@mhilbrunner

Copy link
Copy Markdown
Member

Needs a CI fix / rebase :)

The first shader example is a valid `canvas_item` shader,
but not a valid `spatial` shader as `COLOR` is read-only in
`spatial`'s `fragment()` (it reads the vertex color).
@Calinou Calinou force-pushed the introduction-to-shaders-type branch from 4e763bb to 9d7ca5e Compare June 25, 2026 01:41
@mhilbrunner mhilbrunner merged commit 3113a45 into godotengine:master Jun 25, 2026
1 check passed
@mhilbrunner

Copy link
Copy Markdown
Member

Thanks! Merged.

@Calinou Calinou deleted the introduction-to-shaders-type branch June 25, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:manual Issues and PRs related to the Manual/Tutorials section of the documentation enhancement topic:shaders

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants