Module dpmod: Change committed
havoc at icculus.org
havoc at icculus.org
Mon Mar 1 19:23:36 EST 2004
Commiter : havoc
CVSROOT : /cvs/cvsroot/twilight
Module : dpmod
Commit time: 2004-03-02 00:23:36 UTC
Log message:
revised TENEBRAE_GFX_DLIGHTS extension to have PFLAG_ constants, and better explain the switch from EF_FULLDYNAMIC to PFLAG_FULLDYNAMIC
Modified files:
qc/dpextensions.qc
------=MIME.caddd67b6d7bcb75244ada5d64244e32
Content-Type: text/plain; name="dpmod.20040302.002336.havoc.diff"
Content-Disposition: attachment; filename="dpmod.20040302.002336.havoc.diff"
Content-Transfer-Encoding: 8bit
Index: dpmod/qc/dpextensions.qc
diff -u dpmod/qc/dpextensions.qc:1.17 dpmod/qc/dpextensions.qc:1.18
--- dpmod/qc/dpextensions.qc:1.17 Thu Feb 26 21:10:18 2004
+++ dpmod/qc/dpextensions.qc Mon Mar 1 19:23:25 2004
@@ -900,11 +900,15 @@
.float pflags; // flags (1 is no shadow, 2 is draw corona which is ignored by darkplaces which always uses a corona)
.vector angles; // orientation of the light
.float skin; // cubemap filter number (filter disabled if skin < 16), this selects a projective light filter, a value of 16 loads cubemaps/16posx.tga and cubemaps/16negx.tga and posy, negy, posz, and negz, similar to skybox but some sides need to be rotated or flipped
+//constants:
+float PFLAGS_NOSHADOW = 1;
+float PFLAGS_CORONA = 2;
+float PFLAGS_FULLDYNAMIC = 128;
//description:
//more powerful dynamic light settings
//warning: it is best not to use cubemaps on a light entity that has a model, as using a skin number that a model does not have will cause issues in glquake, and produce warnings in darkplaces (use developer 1 to see them)
//changes compared to tenebrae (because they're too 'leet' for standards):
-//EF_FULLDYNAMIC does not exist (it conflicts with standard effect flags), so light_lev is used instead (this means that light_lev does not default to 350 like in Tenebrae)
+//EF_FULLDYNAMIC effects flag replaced by PFLAGS_FULLDYNAMIC flag (EF_FULLDYNAMIC conflicts with EF_NODRAW)
//TW_SV_STEPCONTROL
//idea: Transfusion
More information about the twilight-commits
mailing list