fix FX load
parent
4093f97dec
commit
d11546ad72
1
MAKE.bat
1
MAKE.bat
|
@ -768,6 +768,7 @@ if "!vis!"=="yes" echo !cc! !o! editor.exe tools\editor\editor.c !edit! !impor
|
||||||
|
|
||||||
rem demos
|
rem demos
|
||||||
if "!demos!"=="yes" (
|
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! 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! 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
|
!echo! 02-ddraw && !cc! !o! 02-ddraw.exe demos\02-ddraw.c !import! !args! || set rc=1
|
||||||
|
|
|
@ -20,9 +20,7 @@ int main() {
|
||||||
window_title(__FILE__);
|
window_title(__FILE__);
|
||||||
|
|
||||||
// load all fx files
|
// load all fx files
|
||||||
for(const char **list = file_list("./", "fx**.fs"); *list; list++) {
|
fx_load("fx**.fs");
|
||||||
fx_load(*list);
|
|
||||||
}
|
|
||||||
|
|
||||||
// load skybox
|
// load skybox
|
||||||
skybox_t sky = skybox(flag("--mie") ? 0 : "cubemaps/stardust", 0); // --mie for rayleigh/mie scattering
|
skybox_t sky = skybox(flag("--mie") ? 0 : "cubemaps/stardust", 0); // --mie for rayleigh/mie scattering
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
// 75% window, MSAAx2 flag
|
// 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 all post fx files in all subdirs
|
||||||
fx_load("fx**.fs");
|
fx_load("fx**.fs");
|
||||||
|
|
Loading…
Reference in New Issue