Module dpmod: Change committed
havoc at icculus.org
havoc at icculus.org
Sun Dec 7 04:48:39 EST 2003
Commiter : havoc
CVSROOT : /cvs/cvsroot/twilight
Module : dpmod
Commit time: 2003-12-07 09:48:39 UTC
Log message:
added DP_LITSUPPORT extension
Modified files:
qc/dpextensions.qc
------=MIME.88588f01685e59cd509b4b7467e2b8e3
Content-Type: text/plain; name="dpmod.20031207.094839.havoc.diff"
Content-Disposition: attachment; filename="dpmod.20031207.094839.havoc.diff"
Content-Transfer-Encoding: 8bit
Index: dpmod/qc/dpextensions.qc
diff -u dpmod/qc/dpextensions.qc:1.14 dpmod/qc/dpextensions.qc:1.15
--- dpmod/qc/dpextensions.qc:1.14 Sat Oct 11 01:37:47 2003
+++ dpmod/qc/dpextensions.qc Sun Dec 7 04:48:29 2003
@@ -16,6 +16,13 @@
// ext_setcolor = TRUE;
//from then on you can check ext_setcolor to know if that extension is available
+//DP_LITSUPPORT
+//idea: LordHavoc
+//darkplaces implementation: LordHavoc
+//description:
+//indicates this engine loads .lit files for any quake1 format .bsp files it loads to enhance maps with colored lighting.
+//implementation description: these files begin with the header QLIT followed by version number 1 (as little endian 32bit), the rest of the file is a replacement lightmaps lump, except being 3x as large as the lightmaps lump of the map it matches up with (and yes the between-lightmap padding is expanded 3x to keep this consistent), so the lightmap offset in each surface is simply multiplied by 3 during loading to properly index the lit data, and the lit file is loaded instead of the lightmap lump, other renderer changes are needed to display these of course... see the litsupport.zip sample code (almost a tutorial) at http://icculus.org/twilight/darkplaces for more information.
+
//DP_QC_TRACE_MOVETYPES
//idea: LordHavoc
//darkplaces implementation: id Software
More information about the twilight-commits
mailing list