cf_shader_directory¶
Category: graphics
GitHub: cute_graphics.h
Sets up the app's shader directory.
Parameters | Description |
---|---|
path | A virtual path to the folder with your shaders (subfolders supported). See Virtual File System. |
Remarks¶
Shaders can #include
each other as long as they exist in this directory. Changes to shaders on disk
may also be watched via cf_shader_on_changed to support shader reloading during development. If you call cf_shader_directory with
the path "/assets/shaders"
, you should then supply paths to cf_make_shader relative to the shader directory, and
simply pass in paths such as "/shader.vert
" or "shader.frag"
. This also applies to #include
between shaders.
Related Pages¶
CF_Shader
cf_make_shader
cf_destroy_shader
cf_apply_shader
CF_Material