Skip to content

Create Shader Attributes #3147

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Create Shader Attributes #3147

wants to merge 2 commits into from

Conversation

maxkcy
Copy link
Contributor

@maxkcy maxkcy commented Feb 25, 2025

The input attribute from the engine to the vertex shader.

The input attribute from the engine to the vertex shader.
made it .md compatible
@zhefengzhang
Copy link
Contributor

In Cocos Shader, you typically don't need to write these Attributes as they are handled automatically in chunks.

For example, 2D materials automatically execute this chunk: https://github.com/cocos/cocos-engine/blob/v3.8.6/editor/assets/chunks/legacy/main-functions/general-vs.chunk

Regarding chunks: http://localhost:5173/creator/3.8/manual/en/shader/effect-chunk-index.html

The Cocos Shader documentation usually doesn't teach users how to write raw Shader programs. Instead, we want users to learn how to use Cocos Shader and add the content they need.

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.

2 participants