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

Organize shader chunks #4151

Merged
merged 2 commits into from
Mar 24, 2022
Merged

Organize shader chunks #4151

merged 2 commits into from
Mar 24, 2022

Conversation

slimbuck
Copy link
Member

@slimbuck slimbuck commented Mar 24, 2022

This PR organises shader chunks into subfolders in order to prepare for upcoming engine material changes.

The chunks are categorised as follows:

  • chunks - shared and one-off chunks
  • chunks/lightmapper - chunks specific to the lightmapper
  • chunks/lit - lighting "backend" chunks. These will be exposed in future as a new LitMaterial material.
  • chunks/particle - particle system-specific chunks
  • chunks/skybox - skybox material chunks
  • chunks/standard - the standard material "front-end" chunks

This PR is only the first step toward updating our material system and as such doesn't change API, but please note that in future:

  • we will continue to support applications overriding chunks in chunks/standard and will endeavour to change these chunks as little as possible.
  • we will likely be making breaking changes to the chunks in chunks/lit and users should not rely on the stability of these.

In addition the following two chunks have been removed:

  • outputCubemap.frag
  • packDepthMask.frag

@slimbuck slimbuck added enhancement area: graphics Graphics related issue labels Mar 24, 2022
@slimbuck slimbuck requested a review from a team March 24, 2022 10:33
@slimbuck slimbuck self-assigned this Mar 24, 2022
@slimbuck slimbuck merged commit 0314528 into playcanvas:main Mar 24, 2022
@slimbuck slimbuck deleted the lit-material branch March 24, 2022 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants