summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2024-09-16 09:16:15 -0700
committer3gg <3gg@shellblade.net>2024-09-16 09:16:15 -0700
commit34c4c24d4e6337268fa6a318b7f333cd99b1454b (patch)
treee4e292fe495da42801777ffaad6fe04796e7c3ad
parentc77f188399b1c72004e23b77aed83735a3b6349e (diff)
Better naming.
-rw-r--r--gfx/src/util/skyquad.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gfx/src/util/skyquad.c b/gfx/src/util/skyquad.c
index ff8f73f..08fa044 100644
--- a/gfx/src/util/skyquad.c
+++ b/gfx/src/util/skyquad.c
@@ -83,15 +83,16 @@ cleanup:
83 83
84/// Create an environment light node. 84/// Create an environment light node.
85static SceneNode* make_environment_light( 85static SceneNode* make_environment_light(
86 SceneNode* root, const Texture* environment_light) { 86 SceneNode* root, const Texture* environment_map) {
87 assert(root); 87 assert(root);
88 assert(environment_map);
88 89
89 Light* light = 0; 90 Light* light = 0;
90 SceneNode* light_node = 0; 91 SceneNode* light_node = 0;
91 92
92 light = gfx_make_light(&(LightDesc){ 93 light = gfx_make_light(&(LightDesc){
93 .type = EnvironmentLightType, 94 .type = EnvironmentLightType,
94 .light = {(EnvironmentLightDesc){.environment_map = environment_light}}}); 95 .light = {(EnvironmentLightDesc){.environment_map = environment_map}}});
95 if (!light) { 96 if (!light) {
96 goto cleanup; 97 goto cleanup;
97 } 98 }