X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=client.h;h=4230c6a82d27819abfee3aa1b0497b4b83330df9;hb=d936abc44e2965d49f8f2e3d5030c5ad3a5bf222;hp=d9facec2aec6c7a53678834bc642d0cd27b186f3;hpb=acf502162a85bcbb89de693665a8ece254a64aac;p=xonotic%2Fdarkplaces.git diff --git a/client.h b/client.h index d9facec2..4230c6a8 100644 --- a/client.h +++ b/client.h @@ -286,7 +286,7 @@ typedef struct rtlight_s char cubemapname[64]; /// light style to monitor for brightness int style; - /// whether light should render shadows + /// whether light should render shadows (see castshadows for whether it actually does this frame) int shadow; /// intensity of corona to render vec_t corona; @@ -323,6 +323,8 @@ typedef struct rtlight_s rtexture_t *currentcubemap; /// set by R_Shadow_PrepareLight to decide whether R_Shadow_DrawLight should draw it qboolean draw; + /// set by R_Shadow_PrepareLight to indicate whether R_Shadow_DrawShadowMaps should do anything + qboolean castshadows; /// these fields are set by R_Shadow_PrepareLight for later drawing int cached_numlightentities; int cached_numlightentities_noselfshadow; @@ -352,6 +354,12 @@ typedef struct rtlight_s int compiled; /// the shadowing mode used to compile this light int shadowmode; + /// the size that this light should have (assuming no scene LOD kicking in to reduce it) + int shadowmapsidesize; + /// position of this light in the shadowmap atlas + int shadowmapatlasposition[2]; + /// size of one side of this light in the shadowmap atlas (for omnidirectional shadowmaps this is the min corner of a 2x3 arrangement, or a 4x3 arrangement in the case of noselfshadow entities being present) + int shadowmapatlassidesize; /// premade shadow volumes to render for world entity shadowmesh_t *static_meshchain_shadow_zpass; shadowmesh_t *static_meshchain_shadow_zfail; @@ -834,6 +842,7 @@ typedef struct client_static_s double connect_nextsendtime; lhnetsocket_t *connect_mysocket; lhnetaddress_t connect_address; + lhnetaddress_t rcon_address; // protocol version of the server we're connected to // (kept outside client_state_t because it's used between levels) protocolversion_t protocol;