Skip to content

Fix XBox shader compilation error#394

Open
emtony wants to merge 2 commits into
mob-sakai:mainfrom
emtony:patch-1
Open

Fix XBox shader compilation error#394
emtony wants to merge 2 commits into
mob-sakai:mainfrom
emtony:patch-1

Conversation

@emtony
Copy link
Copy Markdown

@emtony emtony commented May 13, 2026

Description

The UIEffect doesn't work correctly on XBox because the compiler doesn't like that it's using a global variable in the fragment shader. The error is:

Shader error in 'Hidden/UI/Default (UIEffect)': Program 'frag', error: llvm::cast<X>() argument of incompatible type! (on gamecore_scarlett)

Type of change

  • [*] Bug fix (non-breaking change which fixes an issue)

I've removed the global variable in the fragment shader and now pass the color around in the function chain.

Test environment

  • Platform: XBox Series X/S
  • Unity version: 6000.4.0f1
  • IL2CPP

Checklist

  • [*] This pull request is for merging into the develop branch
  • [*] My code follows the style guidelines of this project
  • [*] I have performed a self-review of my own code
  • [*] My changes generate no new warnings

The UIEffect doesn't work correctly on XBox because the compiler doesn't like that cast. The error is:

Shader error in 'Hidden/UI/Default (UIEffect)': Program 'frag', error: llvm::cast<X>() argument of incompatible type! (on gamecore_scarlett)
@emtony emtony requested a review from mob-sakai as a code owner May 13, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant