mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-20 04:26:03 +08:00
Added original SDK code for Alien Swarm.
This commit is contained in:
43
game/shared/postprocess_shared.h
Normal file
43
game/shared/postprocess_shared.h
Normal file
@ -0,0 +1,43 @@
|
||||
//====== Copyright <20> 1996-2009, Valve Corporation, All rights reserved. =======
|
||||
//
|
||||
// Purpose: common definitions for post-processing effects
|
||||
//
|
||||
//=============================================================================
|
||||
|
||||
#ifndef POSTPROCESS_SHARED_H
|
||||
#define POSTPROCESS_SHARED_H
|
||||
|
||||
#if defined( COMPILER_MSVC )
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
enum PostProcessParameterNames_t
|
||||
{
|
||||
PPPN_FADE_TIME = 0,
|
||||
PPPN_LOCAL_CONTRAST_STRENGTH,
|
||||
PPPN_LOCAL_CONTRAST_EDGE_STRENGTH,
|
||||
PPPN_VIGNETTE_START,
|
||||
PPPN_VIGNETTE_END,
|
||||
PPPN_VIGNETTE_BLUR_STRENGTH,
|
||||
PPPN_FADE_TO_BLACK_STRENGTH,
|
||||
PPPN_DEPTH_BLUR_FOCAL_DISTANCE,
|
||||
PPPN_DEPTH_BLUR_STRENGTH,
|
||||
PPPN_SCREEN_BLUR_STRENGTH,
|
||||
PPPN_FILM_GRAIN_STRENGTH,
|
||||
|
||||
POST_PROCESS_PARAMETER_COUNT
|
||||
};
|
||||
|
||||
struct PostProcessParameters_t
|
||||
{
|
||||
PostProcessParameters_t()
|
||||
{
|
||||
memset( m_flParameters, 0, sizeof( m_flParameters ) );
|
||||
m_flParameters[ PPPN_VIGNETTE_START ] = 0.8f;
|
||||
m_flParameters[ PPPN_VIGNETTE_END ] = 1.1f;
|
||||
}
|
||||
|
||||
float m_flParameters[ POST_PROCESS_PARAMETER_COUNT ];
|
||||
};
|
||||
|
||||
#endif // POSTPROCESS_SHARED_H
|
Reference in New Issue
Block a user