summaryrefslogtreecommitdiff
path: root/res/lights.xml
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-11 18:57:57 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-11 18:57:57 +0000
commitb6fbe0bf35bf58447f2f83f6fc519b4d3eaea107 (patch)
tree6bbaad7f0d384bab4f05080b7a65e9540cee2247 /res/lights.xml
parentInitial commit with working light instancing (diff)
downloadilt-b6fbe0bf35bf58447f2f83f6fc519b4d3eaea107.tar.bz2
ilt-b6fbe0bf35bf58447f2f83f6fc519b4d3eaea107.tar.xz
ilt-b6fbe0bf35bf58447f2f83f6fc519b4d3eaea107.zip
Full implementation passing through light defs from vertex data
Note: there is a bug where the light position/direction are rotated backwards to the model even though its using the model's rotation matrix... no idea why/how.
Diffstat (limited to 'res/lights.xml')
-rw-r--r--res/lights.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/res/lights.xml b/res/lights.xml
index 536afd2..a395306 100644
--- a/res/lights.xml
+++ b/res/lights.xml
@@ -5,8 +5,9 @@
<use type="cylinder" scale="0.12,0.12,1" colour="lightslategray"/>
<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"/>
+ <use type="cuboid" position="0,1.400,4.060" scale=".14,.3,0.07" colour="lightslategray"/>
</bodyMesh>
- <spotLight position="0,1400,4100" direction="0,0,-1" colour=".9,.9,.9" kq="0.01" arc="1.5"/>
+ <spotLight position="0,1400,4100" direction="0,0.1,-1" colour=".9,.9,.9" kq="0.1" 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">