Skip to content

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