diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /public/renderparm.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'public/renderparm.h')
| -rw-r--r-- | public/renderparm.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/public/renderparm.h b/public/renderparm.h new file mode 100644 index 0000000..a473c29 --- /dev/null +++ b/public/renderparm.h @@ -0,0 +1,75 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: defines constants to use for the materialsystem and shaderapi +// SetxxxRenderingParameter functions +// +// $NoKeywords: $ +// +//===========================================================================// + +#ifndef RENDERPARM_H +#define RENDERPARM_H + +#ifndef _WIN32 +#pragma once +#endif + + +enum RenderParamVector_t +{ + VECTOR_RENDERPARM_HMDWARP_LEFT_CENTRE = 0, + VECTOR_RENDERPARM_HMDWARP_LEFT_COEFF012, + VECTOR_RENDERPARM_HMDWARP_LEFT_COEFF34_RED_OFFSET, + VECTOR_RENDERPARM_HMDWARP_RIGHT_CENTRE, + VECTOR_RENDERPARM_HMDWARP_RIGHT_COEFF012, + VECTOR_RENDERPARM_HMDWARP_RIGHT_COEFF34_BLUE_OFFSET, + VECTOR_RENDERPARM_HMDWARP_GROW_OUTIN, + VECTOR_RENDERPARM_HMDWARP_GROW_ABOVEBELOW, + VECTOR_RENDERPARM_HMDWARP_ASPECT, + INT_RENDERPARM_DISTORTION_TYPE, + + MAX_VECTOR_RENDER_PARMS = 20 +}; + + +#define MAX_FLOAT_RENDER_PARMS 20 + +enum RenderParamInt_t +{ + INT_RENDERPARM_ENABLE_FIXED_LIGHTING = 0, + INT_RENDERPARM_MORPH_ACCUMULATOR_X_OFFSET, + INT_RENDERPARM_MORPH_ACCUMULATOR_Y_OFFSET, + INT_RENDERPARM_MORPH_ACCUMULATOR_SUBRECT_WIDTH, + INT_RENDERPARM_MORPH_ACCUMULATOR_SUBRECT_HEIGHT, + INT_RENDERPARM_MORPH_ACCUMULATOR_4TUPLE_COUNT, + + INT_RENDERPARM_MORPH_WEIGHT_X_OFFSET, + INT_RENDERPARM_MORPH_WEIGHT_Y_OFFSET, + INT_RENDERPARM_MORPH_WEIGHT_SUBRECT_WIDTH, + INT_RENDERPARM_MORPH_WEIGHT_SUBRECT_HEIGHT, + + INT_RENDERPARM_WRITE_DEPTH_TO_DESTALPHA, + + INT_RENDERPARM_BACK_BUFFER_INDEX, + + MAX_INT_RENDER_PARMS = 20 +}; + +// for INT_RENDERPARM_BACK_BUFFER_INDEX +#define BACK_BUFFER_INDEX_DEFAULT 0 +#define BACK_BUFFER_INDEX_HDR 1 + +enum RenderParamTexture_t +{ + TEXTURE_RENDERPARM_AMBIENT_OCCLUSION = 0, + + MAX_TEXTURE_RENDER_PARMS = 2 +}; + +// ENABLE_FIXED_LIGHTING modes: +#define ENABLE_FIXED_LIGHTING_NONE 0 +#define ENABLE_FIXED_LIGHTING_BASICLIGHT 1 +#define ENABLE_FIXED_LIGHTING_OUTPUTMRTS_FOR_DEFERRED_LIGHTING 2 +#define ENABLE_FIXED_LIGHTING_OUTPUTNORMAL_AND_DEPTH 3 + +#endif // RENDERPARM_H |