added mesh rendering

This commit is contained in:
2025-05-28 14:36:57 +03:00
parent 60fa98e240
commit b83078553e
53 changed files with 1436 additions and 363 deletions

View File

@@ -1,3 +1,4 @@
#include "god/build.h"
#include "god/slang.h"
#include "god/utils.h"
#include "god/common.h"
@@ -13,7 +14,7 @@ void build_shader(char *name, enum slang_stage stage)
mv(string_clone("funnyassets/_rtt/gfx/%s.spv",name),file);
};
void makepak(char *name)
void makepak(struct build_data b, char *name)
{
struct run_project rp = run_new("python");
run_add_arg(&rp, "tools/makepak64.py");
@@ -28,9 +29,11 @@ void assets_build(struct build_data b)
makedir("funnyassets/_rtt/gfx");
build_shader("brush_frag", SLANG_STAGE_FRAGMENT);
build_shader("brush_vert", SLANG_STAGE_VERTEX);
build_shader("mesh_frag", SLANG_STAGE_FRAGMENT);
build_shader("mesh_vert", SLANG_STAGE_VERTEX);
mv("funnyassets/_rtt/","funnyassets/maps");
mv("funnyassets/_rtt/","funnyassets/gfx");
mv("funnyassets/_rtt/","funnyassets/textures");
mv("funnyassets/_rtt/","funnyassets/materials");
makepak("rtt");
makepak(b, "rtt");
}