Shaders workflow #2261
-
Hi,
But in my case I build my project with any shaders. I am using axmol in -2.1.3. I also have a question about the path. Just to fort testing I copied and renamed existing working shaders as foo_vs and foo_fs.
So my guess is that, as I mentioned, the workflow to create new shaders is to write them directly in ${CMAKE_BINARY_DIR}/runtime/axslc/custom as xxx_vs and xxx_fs? thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The guide is for Axmol v2, so still follow the guide for Axmol v2.1.3.
No, you still put the files in your They will be compiled at build time, and automatically placed in the correct folder. So, for "myshader.frag", it would be referenced as 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. |
Beta Was this translation helpful? Give feedback.
The guide is for Axmol v2, so still follow the guide for Axmol v2.1.3.
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.