summaryrefslogtreecommitdiff
path: root/res/lights.xml
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-10 01:10:44 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-10 01:10:44 +0000
commit8740d30b01f6c12e2fcea0450df73736cd17dc87 (patch)
treede7715148889aba33d1ccca6740a0e661c866087 /res/lights.xml
parentAdd lights resource set and test scene (diff)
downloadilt-8740d30b01f6c12e2fcea0450df73736cd17dc87.tar.bz2
ilt-8740d30b01f6c12e2fcea0450df73736cd17dc87.tar.xz
ilt-8740d30b01f6c12e2fcea0450df73736cd17dc87.zip
Add spot light definition, loader, and rendering
Rendering is untested, data is passed to whatever GL program is currently active.
Diffstat (limited to 'res/lights.xml')
-rw-r--r--res/lights.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/res/lights.xml b/res/lights.xml
index 137137d..5c11fdf 100644
--- a/res/lights.xml
+++ b/res/lights.xml
@@ -6,6 +6,7 @@
<use type="cylinder" scale="0.07,0.07,3" position="0,0,1" colour="lightslategray"/>
<use type="cylinder" scale="0.05,0.05,1.5" position="0,0.1,4" rotation="1.5,0,0" colour="lightslategray"/>
</bodyMesh>
+ <spotLight position="0,1.4,4.1" direction="0,0,-1" colour=".9,.9,.9" kq="8000" arc="1.5"/>
</asset>
<!-- yes I'm hacking some floor to light up as though its a bush -->
<asset p.typeid="Foliage" id="floor" name="floor">