Multiple Object renderinggit add .git add . Completely revamped the model loading system using Model class instances, uses a Material class to build textures, clean slated descriptor sets for bindless rendering, significantly shortening the amount of code needed to load VkImage, VkImageView, and VkSampler. Added multiple texture rendering, abstracted out model loading process to automatically collect all Model instances and render for each object.

This commit is contained in:
2024-12-03 01:57:55 -06:00
parent e2ef2e4134
commit d862068c6e
34 changed files with 662 additions and 615 deletions

View File

@@ -4,7 +4,7 @@ LDFLAGS=-lglfw -Ilib -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi -ltinyobjloade
MAKEFLAGS += -j16
SRC = $(shell find . -name "*.cpp")
CSRC = $(shell find . -name "*.c")
SHDRSRC = $(shell find . -name "*.frag" -o -name "*vert")
SHDRSRC = $(shell find . -name "*.frag" -o -name "*.vert")
SPV = $(SHDRSRC:%.vert=%.spv) $(SHDRSRC:%.frag=%.spv)
OBJ = $(SRC:%.cpp=%.o)
COBJ=$(CSRC:%.c=%.o)
@@ -48,6 +48,8 @@ $(BIN): $(OBJ) $(COBJ) $(SPV)
glslc $< -o $@
%.spv: %.vert
glslc $< -o $@
%.spv: %.glsl
glslc $< -o $@
.PHONY: clean
clean: