Quake II RTX doxygen  1.0 dev
constants.h File Reference

Go to the source code of this file.

Macros

#define GRAD_DWN   (3)
 
#define SHADOWMAP_SIZE   4096
 
#define TERRAIN_SHADOWMAP_SIZE   2048
 
#define USE_NEAREST_TEXTURE_FILTER   0
 
#define HISTOGRAM_BINS   128
 
#define ALBEDO_TRANSFORM_SCALE   1.0
 
#define ALBEDO_TRANSFORM_BIAS   -0.05
 
#define ALBEDO_TRANSFORM_POWER   0.4545
 
#define EMISSIVE_TRANSFORM_BIAS   -0.001
 
#define MAX_MIRROR_ROUGHNESS   0.02
 
#define NUM_GLOBAL_TEXTUES   2048
 
#define NUM_BLUE_NOISE_TEX   (128 * 4)
 
#define BLUE_NOISE_RES   (256)
 
#define NUM_LIGHT_STATS_BUFFERS   3
 
#define PRIMARY_RAY_T_MAX   10000
 
#define MAX_CAMERAS   8
 
#define STORAGE_SCALE_LF   1024
 
#define STORAGE_SCALE_HF   32
 
#define STORAGE_SCALE_SPEC   32
 
#define STORAGE_SCALE_HDR   128
 
#define MATERIAL_KIND_MASK   0xf0000000
 
#define MATERIAL_KIND_INVALID   0x00000000
 
#define MATERIAL_KIND_REGULAR   0x10000000
 
#define MATERIAL_KIND_CHROME   0x20000000
 
#define MATERIAL_KIND_WATER   0x30000000
 
#define MATERIAL_KIND_LAVA   0x40000000
 
#define MATERIAL_KIND_SLIME   0x50000000
 
#define MATERIAL_KIND_GLASS   0x60000000
 
#define MATERIAL_KIND_SKY   0x70000000
 
#define MATERIAL_KIND_INVISIBLE   0x80000000
 
#define MATERIAL_KIND_EXPLOSION   0x90000000
 
#define MATERIAL_KIND_TRANSPARENT   0xa0000000
 
#define MATERIAL_KIND_SCREEN   0xb0000000
 
#define MATERIAL_KIND_CAMERA   0xc0000000
 
#define MATERIAL_KIND_CHROME_MODEL   0xd0000000
 
#define MATERIAL_FLAG_LIGHT   0x08000000
 
#define MATERIAL_FLAG_CORRECT_ALBEDO   0x04000000
 
#define MATERIAL_FLAG_HANDEDNESS   0x02000000
 
#define MATERIAL_FLAG_WEAPON   0x01000000
 
#define MATERIAL_FLAG_WARP   0x00800000
 
#define MATERIAL_FLAG_FLOWING   0x00400000
 
#define MATERIAL_FLAG_DOUBLE_SIDED   0x00200000
 
#define MATERIAL_FLAG_SHELL_RED   0x00100000
 
#define MATERIAL_FLAG_SHELL_GREEN   0x00080000
 
#define MATERIAL_FLAG_SHELL_BLUE   0x00040000
 
#define MATERIAL_LIGHT_STYLE_MASK   0x0003f000
 
#define MATERIAL_LIGHT_STYLE_SHIFT   12
 
#define MATERIAL_INDEX_MASK   0x00000fff
 
#define CHECKERBOARD_FLAG_PRIMARY   1
 
#define CHECKERBOARD_FLAG_REFLECTION   2
 
#define CHECKERBOARD_FLAG_REFRACTION   4
 
#define MEDIUM_NONE   0
 
#define MEDIUM_WATER   1
 
#define MEDIUM_SLIME   2
 
#define MEDIUM_LAVA   3
 
#define MEDIUM_GLASS   4
 
#define ENVIRONMENT_NONE   0
 
#define ENVIRONMENT_STATIC   1
 
#define ENVIRONMENT_DYNAMIC   2
 
#define SHADER_MAX_ENTITIES   1024
 
#define SHADER_MAX_BSP_ENTITIES   128
 
#define MAX_LIGHT_SOURCES   32
 
#define MAX_LIGHT_STYLES   64
 
#define AS_FLAG_OPAQUE   (1 << 0)
 
#define AS_FLAG_TRANSPARENT   (1 << 1)
 
#define AS_FLAG_PARTICLES   (1 << 2)
 
#define AS_FLAG_VIEWER_MODELS   (1 << 3)
 
#define AS_FLAG_VIEWER_WEAPON   (1 << 4)
 
#define AS_FLAG_EXPLOSIONS   (1 << 5)
 
#define AS_FLAG_SKY   (1 << 6)
 
#define AS_FLAG_CUSTOM_SKY   (1 << 7)
 
#define AS_FLAG_EVERYTHING   0xFF
 
#define AS_INSTANCE_FLAG_DYNAMIC   (1 << 23)
 
#define AS_INSTANCE_FLAG_SKY   (1 << 22)
 
#define AS_INSTANCE_MASK_OFFSET   (AS_INSTANCE_FLAG_SKY - 1)
 
#define SBT_RGEN_PRIMARY_RAYS   0
 
#define SBT_RGEN_REFLECT_REFRACT1   1
 
#define SBT_RGEN_REFLECT_REFRACT2   2
 
#define SBT_RGEN_DIRECT_LIGHTING   3
 
#define SBT_RGEN_DIRECT_LIGHTING_CAUSTICS   4
 
#define SBT_RGEN_INDIRECT_LIGHTING_FIRST   5
 
#define SBT_RGEN_INDIRECT_LIGHTING_SECOND   6
 
#define SBT_RMISS_PATH_TRACER   7
 
#define SBT_RMISS_SHADOW   8
 
#define SBT_RCHIT_OPAQUE   9
 
#define SBT_RAHIT_PARTICLE   10
 
#define SBT_RAHIT_BEAM   11
 
#define SBT_RAHIT_EXPLOSION   12
 
#define SBT_RAHIT_SPRITE   13
 
#define SBT_RCHIT_EMPTY   14
 

Macro Definition Documentation

◆ ALBEDO_TRANSFORM_BIAS

#define ALBEDO_TRANSFORM_BIAS   -0.05

Definition at line 32 of file constants.h.

◆ ALBEDO_TRANSFORM_POWER

#define ALBEDO_TRANSFORM_POWER   0.4545

Definition at line 33 of file constants.h.

◆ ALBEDO_TRANSFORM_SCALE

#define ALBEDO_TRANSFORM_SCALE   1.0

Definition at line 31 of file constants.h.

◆ AS_FLAG_CUSTOM_SKY

#define AS_FLAG_CUSTOM_SKY   (1 << 7)

Definition at line 114 of file constants.h.

◆ AS_FLAG_EVERYTHING

#define AS_FLAG_EVERYTHING   0xFF

Definition at line 115 of file constants.h.

◆ AS_FLAG_EXPLOSIONS

#define AS_FLAG_EXPLOSIONS   (1 << 5)

Definition at line 112 of file constants.h.

◆ AS_FLAG_OPAQUE

#define AS_FLAG_OPAQUE   (1 << 0)

Definition at line 107 of file constants.h.

◆ AS_FLAG_PARTICLES

#define AS_FLAG_PARTICLES   (1 << 2)

Definition at line 109 of file constants.h.

◆ AS_FLAG_SKY

#define AS_FLAG_SKY   (1 << 6)

Definition at line 113 of file constants.h.

◆ AS_FLAG_TRANSPARENT

#define AS_FLAG_TRANSPARENT   (1 << 1)

Definition at line 108 of file constants.h.

◆ AS_FLAG_VIEWER_MODELS

#define AS_FLAG_VIEWER_MODELS   (1 << 3)

Definition at line 110 of file constants.h.

◆ AS_FLAG_VIEWER_WEAPON

#define AS_FLAG_VIEWER_WEAPON   (1 << 4)

Definition at line 111 of file constants.h.

◆ AS_INSTANCE_FLAG_DYNAMIC

#define AS_INSTANCE_FLAG_DYNAMIC   (1 << 23)

Definition at line 117 of file constants.h.

◆ AS_INSTANCE_FLAG_SKY

#define AS_INSTANCE_FLAG_SKY   (1 << 22)

Definition at line 118 of file constants.h.

◆ AS_INSTANCE_MASK_OFFSET

#define AS_INSTANCE_MASK_OFFSET   (AS_INSTANCE_FLAG_SKY - 1)

Definition at line 119 of file constants.h.

◆ BLUE_NOISE_RES

#define BLUE_NOISE_RES   (256)

Definition at line 42 of file constants.h.

◆ CHECKERBOARD_FLAG_PRIMARY

#define CHECKERBOARD_FLAG_PRIMARY   1

Definition at line 88 of file constants.h.

◆ CHECKERBOARD_FLAG_REFLECTION

#define CHECKERBOARD_FLAG_REFLECTION   2

Definition at line 89 of file constants.h.

◆ CHECKERBOARD_FLAG_REFRACTION

#define CHECKERBOARD_FLAG_REFRACTION   4

Definition at line 90 of file constants.h.

◆ EMISSIVE_TRANSFORM_BIAS

#define EMISSIVE_TRANSFORM_BIAS   -0.001

Definition at line 35 of file constants.h.

◆ ENVIRONMENT_DYNAMIC

#define ENVIRONMENT_DYNAMIC   2

Definition at line 100 of file constants.h.

◆ ENVIRONMENT_NONE

#define ENVIRONMENT_NONE   0

Definition at line 98 of file constants.h.

◆ ENVIRONMENT_STATIC

#define ENVIRONMENT_STATIC   1

Definition at line 99 of file constants.h.

◆ GRAD_DWN

#define GRAD_DWN   (3)

Definition at line 22 of file constants.h.

◆ HISTOGRAM_BINS

#define HISTOGRAM_BINS   128

Definition at line 29 of file constants.h.

◆ MATERIAL_FLAG_CORRECT_ALBEDO

#define MATERIAL_FLAG_CORRECT_ALBEDO   0x04000000

Definition at line 74 of file constants.h.

◆ MATERIAL_FLAG_DOUBLE_SIDED

#define MATERIAL_FLAG_DOUBLE_SIDED   0x00200000

Definition at line 79 of file constants.h.

◆ MATERIAL_FLAG_FLOWING

#define MATERIAL_FLAG_FLOWING   0x00400000

Definition at line 78 of file constants.h.

◆ MATERIAL_FLAG_HANDEDNESS

#define MATERIAL_FLAG_HANDEDNESS   0x02000000

Definition at line 75 of file constants.h.

◆ MATERIAL_FLAG_LIGHT

#define MATERIAL_FLAG_LIGHT   0x08000000

Definition at line 73 of file constants.h.

◆ MATERIAL_FLAG_SHELL_BLUE

#define MATERIAL_FLAG_SHELL_BLUE   0x00040000

Definition at line 82 of file constants.h.

◆ MATERIAL_FLAG_SHELL_GREEN

#define MATERIAL_FLAG_SHELL_GREEN   0x00080000

Definition at line 81 of file constants.h.

◆ MATERIAL_FLAG_SHELL_RED

#define MATERIAL_FLAG_SHELL_RED   0x00100000

Definition at line 80 of file constants.h.

◆ MATERIAL_FLAG_WARP

#define MATERIAL_FLAG_WARP   0x00800000

Definition at line 77 of file constants.h.

◆ MATERIAL_FLAG_WEAPON

#define MATERIAL_FLAG_WEAPON   0x01000000

Definition at line 76 of file constants.h.

◆ MATERIAL_INDEX_MASK

#define MATERIAL_INDEX_MASK   0x00000fff

Definition at line 86 of file constants.h.

◆ MATERIAL_KIND_CAMERA

#define MATERIAL_KIND_CAMERA   0xc0000000

Definition at line 70 of file constants.h.

◆ MATERIAL_KIND_CHROME

#define MATERIAL_KIND_CHROME   0x20000000

Definition at line 60 of file constants.h.

◆ MATERIAL_KIND_CHROME_MODEL

#define MATERIAL_KIND_CHROME_MODEL   0xd0000000

Definition at line 71 of file constants.h.

◆ MATERIAL_KIND_EXPLOSION

#define MATERIAL_KIND_EXPLOSION   0x90000000

Definition at line 67 of file constants.h.

◆ MATERIAL_KIND_GLASS

#define MATERIAL_KIND_GLASS   0x60000000

Definition at line 64 of file constants.h.

◆ MATERIAL_KIND_INVALID

#define MATERIAL_KIND_INVALID   0x00000000

Definition at line 58 of file constants.h.

◆ MATERIAL_KIND_INVISIBLE

#define MATERIAL_KIND_INVISIBLE   0x80000000

Definition at line 66 of file constants.h.

◆ MATERIAL_KIND_LAVA

#define MATERIAL_KIND_LAVA   0x40000000

Definition at line 62 of file constants.h.

◆ MATERIAL_KIND_MASK

#define MATERIAL_KIND_MASK   0xf0000000

Definition at line 57 of file constants.h.

◆ MATERIAL_KIND_REGULAR

#define MATERIAL_KIND_REGULAR   0x10000000

Definition at line 59 of file constants.h.

◆ MATERIAL_KIND_SCREEN

#define MATERIAL_KIND_SCREEN   0xb0000000

Definition at line 69 of file constants.h.

◆ MATERIAL_KIND_SKY

#define MATERIAL_KIND_SKY   0x70000000

Definition at line 65 of file constants.h.

◆ MATERIAL_KIND_SLIME

#define MATERIAL_KIND_SLIME   0x50000000

Definition at line 63 of file constants.h.

◆ MATERIAL_KIND_TRANSPARENT

#define MATERIAL_KIND_TRANSPARENT   0xa0000000

Definition at line 68 of file constants.h.

◆ MATERIAL_KIND_WATER

#define MATERIAL_KIND_WATER   0x30000000

Definition at line 61 of file constants.h.

◆ MATERIAL_LIGHT_STYLE_MASK

#define MATERIAL_LIGHT_STYLE_MASK   0x0003f000

Definition at line 84 of file constants.h.

◆ MATERIAL_LIGHT_STYLE_SHIFT

#define MATERIAL_LIGHT_STYLE_SHIFT   12

Definition at line 85 of file constants.h.

◆ MAX_CAMERAS

#define MAX_CAMERAS   8

Definition at line 48 of file constants.h.

◆ MAX_LIGHT_SOURCES

#define MAX_LIGHT_SOURCES   32

Definition at line 104 of file constants.h.

◆ MAX_LIGHT_STYLES

#define MAX_LIGHT_STYLES   64

Definition at line 105 of file constants.h.

◆ MAX_MIRROR_ROUGHNESS

#define MAX_MIRROR_ROUGHNESS   0.02

Definition at line 37 of file constants.h.

◆ MEDIUM_GLASS

#define MEDIUM_GLASS   4

Definition at line 96 of file constants.h.

◆ MEDIUM_LAVA

#define MEDIUM_LAVA   3

Definition at line 95 of file constants.h.

◆ MEDIUM_NONE

#define MEDIUM_NONE   0

Definition at line 92 of file constants.h.

◆ MEDIUM_SLIME

#define MEDIUM_SLIME   2

Definition at line 94 of file constants.h.

◆ MEDIUM_WATER

#define MEDIUM_WATER   1

Definition at line 93 of file constants.h.

◆ NUM_BLUE_NOISE_TEX

#define NUM_BLUE_NOISE_TEX   (128 * 4)

Definition at line 41 of file constants.h.

◆ NUM_GLOBAL_TEXTUES

#define NUM_GLOBAL_TEXTUES   2048

Definition at line 39 of file constants.h.

◆ NUM_LIGHT_STATS_BUFFERS

#define NUM_LIGHT_STATS_BUFFERS   3

Definition at line 44 of file constants.h.

◆ PRIMARY_RAY_T_MAX

#define PRIMARY_RAY_T_MAX   10000

Definition at line 46 of file constants.h.

◆ SBT_RAHIT_BEAM

#define SBT_RAHIT_BEAM   11

Definition at line 132 of file constants.h.

◆ SBT_RAHIT_EXPLOSION

#define SBT_RAHIT_EXPLOSION   12

Definition at line 133 of file constants.h.

◆ SBT_RAHIT_PARTICLE

#define SBT_RAHIT_PARTICLE   10

Definition at line 131 of file constants.h.

◆ SBT_RAHIT_SPRITE

#define SBT_RAHIT_SPRITE   13

Definition at line 134 of file constants.h.

◆ SBT_RCHIT_EMPTY

#define SBT_RCHIT_EMPTY   14

Definition at line 135 of file constants.h.

◆ SBT_RCHIT_OPAQUE

#define SBT_RCHIT_OPAQUE   9

Definition at line 130 of file constants.h.

◆ SBT_RGEN_DIRECT_LIGHTING

#define SBT_RGEN_DIRECT_LIGHTING   3

Definition at line 124 of file constants.h.

◆ SBT_RGEN_DIRECT_LIGHTING_CAUSTICS

#define SBT_RGEN_DIRECT_LIGHTING_CAUSTICS   4

Definition at line 125 of file constants.h.

◆ SBT_RGEN_INDIRECT_LIGHTING_FIRST

#define SBT_RGEN_INDIRECT_LIGHTING_FIRST   5

Definition at line 126 of file constants.h.

◆ SBT_RGEN_INDIRECT_LIGHTING_SECOND

#define SBT_RGEN_INDIRECT_LIGHTING_SECOND   6

Definition at line 127 of file constants.h.

◆ SBT_RGEN_PRIMARY_RAYS

#define SBT_RGEN_PRIMARY_RAYS   0

Definition at line 121 of file constants.h.

◆ SBT_RGEN_REFLECT_REFRACT1

#define SBT_RGEN_REFLECT_REFRACT1   1

Definition at line 122 of file constants.h.

◆ SBT_RGEN_REFLECT_REFRACT2

#define SBT_RGEN_REFLECT_REFRACT2   2

Definition at line 123 of file constants.h.

◆ SBT_RMISS_PATH_TRACER

#define SBT_RMISS_PATH_TRACER   7

Definition at line 128 of file constants.h.

◆ SBT_RMISS_SHADOW

#define SBT_RMISS_SHADOW   8

Definition at line 129 of file constants.h.

◆ SHADER_MAX_BSP_ENTITIES

#define SHADER_MAX_BSP_ENTITIES   128

Definition at line 103 of file constants.h.

◆ SHADER_MAX_ENTITIES

#define SHADER_MAX_ENTITIES   1024

Definition at line 102 of file constants.h.

◆ SHADOWMAP_SIZE

#define SHADOWMAP_SIZE   4096

Definition at line 24 of file constants.h.

◆ STORAGE_SCALE_HDR

#define STORAGE_SCALE_HDR   128

Definition at line 55 of file constants.h.

◆ STORAGE_SCALE_HF

#define STORAGE_SCALE_HF   32

Definition at line 53 of file constants.h.

◆ STORAGE_SCALE_LF

#define STORAGE_SCALE_LF   1024

Definition at line 52 of file constants.h.

◆ STORAGE_SCALE_SPEC

#define STORAGE_SCALE_SPEC   32

Definition at line 54 of file constants.h.

◆ TERRAIN_SHADOWMAP_SIZE

#define TERRAIN_SHADOWMAP_SIZE   2048

Definition at line 25 of file constants.h.

◆ USE_NEAREST_TEXTURE_FILTER

#define USE_NEAREST_TEXTURE_FILTER   0

Definition at line 27 of file constants.h.