aboutsummaryrefslogtreecommitdiff
path: root/src/assets.c
diff options
context:
space:
mode:
authornathansmithsmith <nathansmith7@mailfence.com>2023-11-05 00:07:55 -0600
committernathansmithsmith <nathansmith7@mailfence.com>2023-11-05 00:07:55 -0600
commit451887dabd71b6b9b8cdf2587fee31ec59c3675b (patch)
tree0129a76d755c222dd62cd418f184ed1c7254aa79 /src/assets.c
parentf45d32ca36a0ae85410b3eee61120fa97bf9bd25 (diff)
Started working on cool stars
Diffstat (limited to 'src/assets.c')
-rw-r--r--src/assets.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/assets.c b/src/assets.c
index cc6a7b0..bdd0d8d 100644
--- a/src/assets.c
+++ b/src/assets.c
@@ -4,7 +4,8 @@ const char textureAssetPaths[TEXTURE_ASSET_COUNT][ASSET_PATH_MAX] = {
"/home/nathan/Documents/KillaFacsista/assets/icon.png",
"/home/nathan/Documents/KillaFacsista/assets/icon128.png",
"/home/nathan/Documents/KillaFacsista/assets/icon64.png",
- "/home/nathan/Documents/KillaFacsista/assets/gyroscope.png"
+ "/home/nathan/Documents/KillaFacsista/assets/gyroscope.png",
+ "/home/nathan/Documents/KillaFacsista/assets/skyTexture.png"
};
const char modelAssetPaths[MODEL_ASSET_COUNT][ASSET_PATH_MAX] = {
@@ -17,7 +18,8 @@ const char modelAssetPaths[MODEL_ASSET_COUNT][ASSET_PATH_MAX] = {
"/home/nathan/Documents/KillaFacsista/assets/mussolini.obj",
"/home/nathan/Documents/KillaFacsista/assets/guidedMissile.obj",
"/home/nathan/Documents/KillaFacsista/assets/missile.obj",
- "/home/nathan/Documents/KillaFacsista/assets/gyroscope.obj"
+ "/home/nathan/Documents/KillaFacsista/assets/gyroscope.obj",
+ "/home/nathan/Documents/KillaFacsista/assets/sky.obj"
};
// Some models have textures and other stuff to be set.
@@ -28,6 +30,13 @@ void configModelAssets(Assets * assets) {
MATERIAL_MAP_DIFFUSE,
assets->textures[GYROSCOPE_TEXTURE_ASSET]
);
+
+ // Sky.
+ SetMaterialTexture(
+ &assets->models[SKY_ASSET].materials[0],
+ MATERIAL_MAP_DIFFUSE,
+ assets->textures[SKY_TEXTURE_ASSET]
+ );
}
void LoadAssets(Assets * assets) {