Skip to content

Conversation

@slimbuck
Copy link
Member

Description

In some cases scenes containing NaN or inf values can end up as null in one of the SOG codebook.

In this case rendering fails and this PR fixes that.

@slimbuck slimbuck requested review from a team and Copilot October 15, 2025 13:38
@slimbuck slimbuck self-assigned this Oct 15, 2025
@slimbuck slimbuck added bug Something isn't working area: graphics Graphics related issue labels Oct 15, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Fixes rendering failures by patching SOG codebooks that start with a null entry by computing a replacement value for index 0.

  • Adds a patch for codebooks 'scales', 'sh0', and 'shN' when codebook[0] is null
  • Leaves rest of generation flow unchanged

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@slimbuck slimbuck merged commit e82459d into playcanvas:main Oct 15, 2025
6 of 7 checks passed
@slimbuck slimbuck deleted the codebook-dev branch October 15, 2025 13:50
slimbuck added a commit that referenced this pull request Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: graphics Graphics related issue bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants