doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Functions | Variables
draw_exp.cpp File Reference
#include "../idlib/precompiled.h"
#include "tr_local.h"
#include "../sys/win32/win_local.h"

Go to the source code of this file.

Classes

struct  wglString_t
 

Functions

void RB_ARB2_DrawInteraction (const drawInteraction_t *din)
 
void R_PrintPixelFormat (int pixelFormat)
 
void R_Exp_Allocate (void)
 
void RB_EXP_CullInteractions (viewLight_t *vLight, idPlane frustumPlanes[6])
 
void RB_EXP_RenderOccluders (viewLight_t *vLight)
 
void RB_RenderShadowBuffer (viewLight_t *vLight, int side)
 
void RB_EXP_DrawInteraction (const drawInteraction_t *din)
 
void RB_EXP_CreateDrawInteractions (const drawSurf_t *surf)
 
void InvertByTranspose (const float a[16], float r[16])
 
void FullInvert (const float a[16], float r[16])
 
const srfTriangles_tRB_Exp_TrianglesForFrustum (viewLight_t *vLight, int side)
 
void RB_Exp_SelectFrustum (viewLight_t *vLight, int side)
 
float R_EXP_CalcLightAxialSize (viewLight_t *vLight)
 
void RB_T_FillDepthBuffer (const drawSurf_t *surf)
 
void R_EXP_RenderViewDepthImage (void)
 
void RB_EXP_SetNativeBuffer (void)
 
void RB_EXP_SetRenderBuffer (viewLight_t *vLight)
 
void RB_shadowResampleAlpha (void)
 
void RB_EXP_CoverScreen (void)
 
void RB_EXP_ReadFloatBuffer (void)
 
void RB_TestGamma (void)
 
void RB_EXP_GammaDither (void)
 
void RB_EXP_Bloom (void)
 
void RB_Exp_DrawInteractions (void)
 
void R_Exp_Init (void)
 

Variables

idCVar r_sb_lightResolution ("r_sb_lightResolution","1024", CVAR_RENDERER|CVAR_INTEGER,"Pixel dimensions for each shadow buffer, 64 - 2048")
 
idCVar r_sb_viewResolution ("r_sb_viewResolution","1024", CVAR_RENDERER|CVAR_INTEGER,"Width of screen space shadow sampling")
 
idCVar r_sb_noShadows ("r_sb_noShadows","0", CVAR_RENDERER|CVAR_BOOL,"don't draw any occluders")
 
idCVar r_sb_usePbuffer ("r_sb_usePbuffer","1", CVAR_RENDERER|CVAR_BOOL,"draw offscreen")
 
idCVar r_sb_jitterScale ("r_sb_jitterScale","0.006", CVAR_RENDERER|CVAR_FLOAT,"scale factor for jitter offset")
 
idCVar r_sb_biasScale ("r_sb_biasScale","0.0001", CVAR_RENDERER|CVAR_FLOAT,"scale factor for jitter bias")
 
idCVar r_sb_samples ("r_sb_samples","4", CVAR_RENDERER|CVAR_INTEGER,"0, 1, 4, or 16")
 
idCVar r_sb_randomize ("r_sb_randomize","1", CVAR_RENDERER|CVAR_BOOL,"randomly offset jitter texture each draw")
 
idCVar r_sb_polyOfsFactor ("r_sb_polyOfsFactor","2", CVAR_RENDERER|CVAR_FLOAT,"polygonOffset factor for drawing shadow buffer")
 
idCVar r_sb_polyOfsUnits ("r_sb_polyOfsUnits","3000", CVAR_RENDERER|CVAR_FLOAT,"polygonOffset units for drawing shadow buffer")
 
idCVar r_sb_occluderFacing ("r_sb_occluderFacing","0", CVAR_RENDERER|CVAR_INTEGER,"0 = front faces, 1 = back faces, 2 = midway between")
 
idCVar r_sb_frustomFOV ("r_sb_frustomFOV","92", CVAR_RENDERER|CVAR_FLOAT,"oversize FOV for point light side matching")
 
idCVar r_sb_showFrustumPixels ("r_sb_showFrustumPixels","0", CVAR_RENDERER|CVAR_BOOL,"color the pixels contained in the frustum")
 
idCVar r_sb_singleSide ("r_sb_singleSide","-1", CVAR_RENDERER|CVAR_INTEGER,"only draw a single side (0-5) of point lights")
 
idCVar r_sb_useCulling ("r_sb_useCulling","1", CVAR_RENDERER|CVAR_BOOL,"cull geometry to individual side frustums")
 
idCVar r_sb_linearFilter ("r_sb_linearFilter","1", CVAR_RENDERER|CVAR_BOOL,"use GL_LINEAR instead of GL_NEAREST on shadow maps")
 
idCVar r_sb_screenSpaceShadow ("r_sb_screenSpaceShadow","1", CVAR_RENDERER|CVAR_BOOL,"build shadows in screen space instead of on surfaces")
 
idCVar r_hdr_useFloats ("r_hdr_useFloats","0", CVAR_RENDERER|CVAR_BOOL,"use a floating point rendering buffer")
 
idCVar r_hdr_exposure ("r_hdr_exposure","1.0", CVAR_RENDERER|CVAR_FLOAT,"maximum light scale")
 
idCVar r_hdr_bloomFraction ("r_hdr_bloomFraction","0.1", CVAR_RENDERER|CVAR_FLOAT,"fraction to smear across neighbors")
 
idCVar r_hdr_gamma ("r_hdr_gamma","1", CVAR_RENDERER|CVAR_FLOAT,"monitor gamma power")
 
idCVar r_hdr_monitorDither ("r_hdr_monitorDither","0.01", CVAR_RENDERER|CVAR_FLOAT,"random dither in monitor space")
 
wglString_t wglString []
 

Function Documentation

void FullInvert ( const float  a[16],
float  r[16] 
)

Definition at line 1424 of file draw_exp.cpp.

void InvertByTranspose ( const float  a[16],
float  r[16] 
)

Definition at line 1405 of file draw_exp.cpp.

void R_Exp_Allocate ( void  )

Definition at line 501 of file draw_exp.cpp.

float R_EXP_CalcLightAxialSize ( viewLight_t vLight)

Definition at line 1819 of file draw_exp.cpp.

void R_Exp_Init ( void  )

Definition at line 2583 of file draw_exp.cpp.

void R_EXP_RenderViewDepthImage ( void  )

Definition at line 1848 of file draw_exp.cpp.

void R_PrintPixelFormat ( int  pixelFormat)

Definition at line 479 of file draw_exp.cpp.

void RB_ARB2_DrawInteraction ( const drawInteraction_t din)

Definition at line 67 of file draw_arb2.cpp.

void RB_EXP_Bloom ( void  )

Definition at line 2245 of file draw_exp.cpp.

void RB_EXP_CoverScreen ( void  )

Definition at line 2077 of file draw_exp.cpp.

void RB_EXP_CreateDrawInteractions ( const drawSurf_t surf)

#

Definition at line 1265 of file draw_exp.cpp.

void RB_EXP_CullInteractions ( viewLight_t vLight,
idPlane  frustumPlanes[6] 
)

Definition at line 716 of file draw_exp.cpp.

void RB_EXP_DrawInteraction ( const drawInteraction_t din)

Definition at line 1126 of file draw_exp.cpp.

void RB_Exp_DrawInteractions ( void  )

#

#

Definition at line 2364 of file draw_exp.cpp.

void RB_EXP_GammaDither ( void  )

Definition at line 2145 of file draw_exp.cpp.

void RB_EXP_ReadFloatBuffer ( void  )

Definition at line 2098 of file draw_exp.cpp.

void RB_EXP_RenderOccluders ( viewLight_t vLight)

Definition at line 780 of file draw_exp.cpp.

void RB_Exp_SelectFrustum ( viewLight_t vLight,
int  side 
)

Definition at line 1579 of file draw_exp.cpp.

void RB_EXP_SetNativeBuffer ( void  )

Definition at line 1924 of file draw_exp.cpp.

void RB_EXP_SetRenderBuffer ( viewLight_t vLight)

Definition at line 1949 of file draw_exp.cpp.

const srfTriangles_t* RB_Exp_TrianglesForFrustum ( viewLight_t vLight,
int  side 
)

Definition at line 1454 of file draw_exp.cpp.

void RB_RenderShadowBuffer ( viewLight_t vLight,
int  side 
)

Definition at line 833 of file draw_exp.cpp.

void RB_shadowResampleAlpha ( void  )

Definition at line 1983 of file draw_exp.cpp.

void RB_T_FillDepthBuffer ( const drawSurf_t surf)

Definition at line 350 of file draw_common.cpp.

void RB_TestGamma ( void  )

Definition at line 2121 of file tr_rendertools.cpp.

Variable Documentation

idCVar r_hdr_bloomFraction("r_hdr_bloomFraction","0.1", CVAR_RENDERER|CVAR_FLOAT,"fraction to smear across neighbors")
idCVar r_hdr_exposure("r_hdr_exposure","1.0", CVAR_RENDERER|CVAR_FLOAT,"maximum light scale")
idCVar r_hdr_gamma("r_hdr_gamma","1", CVAR_RENDERER|CVAR_FLOAT,"monitor gamma power")
idCVar r_hdr_monitorDither("r_hdr_monitorDither","0.01", CVAR_RENDERER|CVAR_FLOAT,"random dither in monitor space")
idCVar r_hdr_useFloats("r_hdr_useFloats","0", CVAR_RENDERER|CVAR_BOOL,"use a floating point rendering buffer")
idCVar r_sb_biasScale("r_sb_biasScale","0.0001", CVAR_RENDERER|CVAR_FLOAT,"scale factor for jitter bias")
idCVar r_sb_frustomFOV("r_sb_frustomFOV","92", CVAR_RENDERER|CVAR_FLOAT,"oversize FOV for point light side matching")
idCVar r_sb_jitterScale("r_sb_jitterScale","0.006", CVAR_RENDERER|CVAR_FLOAT,"scale factor for jitter offset")
idCVar r_sb_lightResolution("r_sb_lightResolution","1024", CVAR_RENDERER|CVAR_INTEGER,"Pixel dimensions for each shadow buffer, 64 - 2048")
idCVar r_sb_linearFilter("r_sb_linearFilter","1", CVAR_RENDERER|CVAR_BOOL,"use GL_LINEAR instead of GL_NEAREST on shadow maps")
idCVar r_sb_noShadows("r_sb_noShadows","0", CVAR_RENDERER|CVAR_BOOL,"don't draw any occluders")
idCVar r_sb_occluderFacing("r_sb_occluderFacing","0", CVAR_RENDERER|CVAR_INTEGER,"0 = front faces, 1 = back faces, 2 = midway between")
idCVar r_sb_polyOfsFactor("r_sb_polyOfsFactor","2", CVAR_RENDERER|CVAR_FLOAT,"polygonOffset factor for drawing shadow buffer")
idCVar r_sb_polyOfsUnits("r_sb_polyOfsUnits","3000", CVAR_RENDERER|CVAR_FLOAT,"polygonOffset units for drawing shadow buffer")
idCVar r_sb_randomize("r_sb_randomize","1", CVAR_RENDERER|CVAR_BOOL,"randomly offset jitter texture each draw")
idCVar r_sb_samples("r_sb_samples","4", CVAR_RENDERER|CVAR_INTEGER,"0, 1, 4, or 16")
idCVar r_sb_screenSpaceShadow("r_sb_screenSpaceShadow","1", CVAR_RENDERER|CVAR_BOOL,"build shadows in screen space instead of on surfaces")
idCVar r_sb_showFrustumPixels("r_sb_showFrustumPixels","0", CVAR_RENDERER|CVAR_BOOL,"color the pixels contained in the frustum")
idCVar r_sb_singleSide("r_sb_singleSide","-1", CVAR_RENDERER|CVAR_INTEGER,"only draw a single side (0-5) of point lights")
idCVar r_sb_useCulling("r_sb_useCulling","1", CVAR_RENDERER|CVAR_BOOL,"cull geometry to individual side frustums")
idCVar r_sb_usePbuffer("r_sb_usePbuffer","1", CVAR_RENDERER|CVAR_BOOL,"draw offscreen")
idCVar r_sb_viewResolution("r_sb_viewResolution","1024", CVAR_RENDERER|CVAR_INTEGER,"Width of screen space shadow sampling")
wglString_t wglString[]

Definition at line 179 of file draw_exp.cpp.