when any shader file is requested, the shader compiler will look for that shader in the current working directory, and in the shaders/ subdirectory - the first file found will be watched for changes and reloaded on-the-fly
hot-reloadable shaders from the filesystem will only be marked as stale if their compilation succeeds
hot-reloadable shaders will not be cached
Nice hack for Linux and macOS: symlink src/main/resources/graphics/scenery/backends/shaders to ./shaders, so all of scenery's default shaders become hot-reloadable.
This PR improves hot reloading of shaders:
shaders/
subdirectory - the first file found will be watched for changes and reloaded on-the-flyNice hack for Linux and macOS: symlink
src/main/resources/graphics/scenery/backends/shaders
to./shaders
, so all of scenery's default shaders become hot-reloadable.