I stored the glsl files in android -> assets -> shaders
directory, but when I run the app, an error is displayed:
Error:Gradle: Execution failed for task ':android:mergeDebugAssets'.
Error: java.io.FileNotFoundException: ...android\assets\shaders (Access is denied)
But the problem goes away if I put those files in assets root folder. Can I not store shader files in asset subdirectories? Using Gdx v1.9.3.
EDIT: The issue is not there when running on Desktop, but only on Android. Didn't check others.
UPDATE: Apparently the issue got resolved today. I didn't make any changes but it's working now!
Gdx.files.internal("shaders/<filename>.glsl")
works for me... \$\endgroup\$