fix FX load

main
Dominik Madarász 2023-08-11 01:43:12 +02:00
parent 4093f97dec
commit d11546ad72
3 changed files with 3 additions and 4 deletions

View File

@ -768,6 +768,7 @@ if "!vis!"=="yes" echo !cc! !o! editor.exe tools\editor\editor.c !edit! !impor
rem demos
if "!demos!"=="yes" (
!echo! 00-demo && !cc! !o! 00-demo.exe demos\00-demo.c !import! !args! || set rc=1
!echo! 00-ui && !cc! !o! 00-ui.exe demos\00-ui.c !import! !args! || set rc=1
!echo! 01-sprite && !cc! !o! 01-sprite.exe demos\01-sprite.c !import! !args! || set rc=1
!echo! 02-ddraw && !cc! !o! 02-ddraw.exe demos\02-ddraw.c !import! !args! || set rc=1

View File

@ -20,9 +20,7 @@ int main() {
window_title(__FILE__);
// load all fx files
for(const char **list = file_list("./", "fx**.fs"); *list; list++) {
fx_load(*list);
}
fx_load("fx**.fs");
// load skybox
skybox_t sky = skybox(flag("--mie") ? 0 : "cubemaps/stardust", 0); // --mie for rayleigh/mie scattering

View File

@ -9,7 +9,7 @@
int main() {
// 75% window, MSAAx2 flag
window_create(75, WINDOW_MSAA2);
window_create(75, WINDOW_MSAA8);
// fx: load all post fx files in all subdirs
fx_load("fx**.fs");