Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add yellow checkerboard for missing required mesh attributes #57

Open
3 of 4 tasks
ScanMountGoat opened this issue Mar 20, 2021 · 0 comments
Open
3 of 4 tasks

Add yellow checkerboard for missing required mesh attributes #57

ScanMountGoat opened this issue Mar 20, 2021 · 0 comments
Labels
Cross Mod enhancement New feature or request

Comments

@ScanMountGoat
Copy link
Collaborator

ScanMountGoat commented Mar 20, 2021

This will require checking what mesh object is assigned to the material. If any of the attributes required by the shader, including Position0, Normal0, and Tangent0 are missing from the mesh object, the mesh object should render as the yellow checkerboard. Additional attributes don't trigger the yellow checkerboard.

  • Add rendering support for yellow checkerboard
  • Update the shader attribute validation to enforce Position0, Normal0, Tangent0 and ignore extra attributes
  • Update the RMaterial's HasRequiredAttributes based on the current mesh without negatively impacting performance
  • Use a more accurate validation check based on attribute usage and subindex if names are incorrect
@ScanMountGoat ScanMountGoat added enhancement New feature or request Cross Mod labels Mar 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cross Mod enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant