Skip to content

Shaders workflow #2261

Answered by rh101
rudiHammad asked this question in Q&A
Dec 9, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

The guide is for Axmol v2, so still follow the guide for Axmol v2.1.3.

Should I just directly write the shaders in ${CMAKE_BINARY_DIR}/runtime/axslc/custom as xxx_vs and xxx_fs?

No, you still put the files in your {project_dir}/Source/shaders/, as "myshader.frag" etc. etc.

They will be compiled at build time, and automatically placed in the correct folder.

So, for "myshader.frag", it would be referenced as custom/myshader_fs in your code.

Just follow the guide. Do not just copy files into the build folders as you've done.

The guide has been updated to remove a section that may have been the source of confusion.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rudiHammad
Comment options

@halx99
Comment options

Answer selected by rudiHammad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants