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 loader for Shader and ShaderChunk asset #2027

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

Sway007
Copy link
Member

@Sway007 Sway007 commented Mar 11, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Add loader for Shader and ShaderChunk asset

@Sway007 Sway007 self-assigned this Mar 11, 2024
@Sway007 Sway007 added enhancement New feature or request shader Shader related functions high priority High priority issue labels Mar 11, 2024
@Sway007 Sway007 added this to the 1.2 milestone Mar 11, 2024
const { type, value } = shaderData[key];
// @ts-ignore
resourceManager.getResourceByRef<Shader>(<IAssetRef>shaderRef).then((shader) => {
const material = new Material(engine, shader);
Copy link
Member

Choose a reason for hiding this comment

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

force use shader?pls compatible with common materials and previous materials

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@Sway007 Sway007 requested a review from zhuxudong March 12, 2024 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high priority High priority issue shader Shader related functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants