Skip to content

make getWorldFromModelMatrix() accessible in fragment shader - #9584

Merged
pixelflinger merged 1 commit into
mainfrom
ma/worldFromModelMatrix
Jan 12, 2026
Merged

make getWorldFromModelMatrix() accessible in fragment shader#9584
pixelflinger merged 1 commit into
mainfrom
ma/worldFromModelMatrix

Conversation

@pixelflinger

Copy link
Copy Markdown
Collaborator

FIXES=[474353927]

@pixelflinger
pixelflinger requested review from trie94 and z3moon January 8, 2026 18:12
@pixelflinger pixelflinger added the internal Issue/PR does not affect clients label Jan 8, 2026
@pixelflinger

Copy link
Copy Markdown
Collaborator Author

@trie94 since this is a new API in materials, is there anything I need to do w.r.t to the new versioning?

@trie94

trie94 commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

@trie94 since this is a new API in materials, is there anything I need to do w.r.t to the new versioning?

yeah add this check in the shader

#if CLIENT_MATERIAL_API_LEVEL >= UNSTABLE_MATERIAL_API_LEVEL

e.g.,

#if CLIENT_MATERIAL_API_LEVEL >= UNSTABLE_MATERIAL_API_LEVEL

btw do we want to use the @unstable-api annotation? this doesn't do anything functionally though

this requires to specify `apiLevel: 2` in the material.

FIXES=[474353927]
@pixelflinger
pixelflinger force-pushed the ma/worldFromModelMatrix branch from e46e79e to 5ffdbe8 Compare January 9, 2026 23:18
@pixelflinger
pixelflinger merged commit 496a50b into main Jan 12, 2026
17 checks passed
@pixelflinger
pixelflinger deleted the ma/worldFromModelMatrix branch January 12, 2026 17:32
j1george pushed a commit to Fieldwire/filament that referenced this pull request Mar 6, 2026
…9584)

this requires to specify `apiLevel: 2` in the material.

FIXES=[474353927]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Issue/PR does not affect clients

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants