mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-06-08 03:42:09 +03:00
- Exposed CAmmoDef to VScript and changed ammo type functions accordingly - Added TakeHealth and IsAlive to CBaseEntity - Added $treeSway - Added several inputs to control env_wind keyvalues + a new $treeSway scale keyvalue - Added "Expanded name fixup" keyvalue to point_template which allows name fixup to fix up output parameters - Fixed the rope on rappelling NPCs causing graphical issues - Fixed prop_vehicle_prisoner_pod missing "EnterVehicle", "EnterVehicleImmediate", and "ExitVehicle" inputs - Fixed hostile citizens not damaging player - Fixed an uncommon npc_metropolice crash from when it's not in a squad - Made SetTarget input update target handling on NPCs - Changed ammo type functions to be more organized, added AmmoDef singleton - Added more precache functions - Added various misc. entity functions, like GetAllWeapons or AddOutput - Added more utility functions
167 lines
4.2 KiB
C++
167 lines
4.2 KiB
C++
//========= Copyright Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// Purpose:
|
|
//
|
|
// $NoKeywords: $
|
|
//=============================================================================
|
|
|
|
#ifndef VERTEXLITGENERIC_DX9_HELPER_H
|
|
#define VERTEXLITGENERIC_DX9_HELPER_H
|
|
|
|
#include <string.h>
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Forward declarations
|
|
//-----------------------------------------------------------------------------
|
|
class CBaseVSShader;
|
|
class IMaterialVar;
|
|
class IShaderDynamicAPI;
|
|
class IShaderShadow;
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Init params/ init/ draw methods
|
|
//-----------------------------------------------------------------------------
|
|
struct VertexLitGeneric_DX9_Vars_t
|
|
{
|
|
VertexLitGeneric_DX9_Vars_t() { memset( this, 0xFF, sizeof(*this) ); }
|
|
|
|
int m_nBaseTexture;
|
|
int m_nWrinkle;
|
|
int m_nStretch;
|
|
int m_nBaseTextureFrame;
|
|
int m_nBaseTextureTransform;
|
|
int m_nAlbedo;
|
|
int m_nDetail;
|
|
int m_nDetailFrame;
|
|
int m_nDetailScale;
|
|
int m_nEnvmap;
|
|
int m_nEnvmapFrame;
|
|
int m_nEnvmapMask;
|
|
int m_nEnvmapMaskFrame;
|
|
int m_nEnvmapMaskTransform;
|
|
int m_nEnvmapTint;
|
|
int m_nBumpmap;
|
|
int m_nNormalWrinkle;
|
|
int m_nNormalStretch;
|
|
int m_nBumpFrame;
|
|
int m_nBumpTransform;
|
|
int m_nEnvmapContrast;
|
|
int m_nEnvmapSaturation;
|
|
int m_nAlphaTestReference;
|
|
int m_nVertexAlphaTest;
|
|
int m_nFlashlightNoLambert;
|
|
int m_nFlashlightTexture;
|
|
int m_nFlashlightTextureFrame;
|
|
|
|
int m_nSelfIllumTint;
|
|
int m_nSelfIllumFresnel;
|
|
int m_nSelfIllumFresnelMinMaxExp;
|
|
|
|
int m_nPhongExponent;
|
|
int m_nPhongTint;
|
|
int m_nPhongAlbedoTint;
|
|
int m_nPhongExponentTexture;
|
|
int m_nDiffuseWarpTexture;
|
|
int m_nPhongWarpTexture;
|
|
int m_nPhongBoost;
|
|
int m_nPhongFresnelRanges;
|
|
int m_nSelfIllumEnvMapMask_Alpha;
|
|
int m_nAmbientOnly;
|
|
int m_nHDRColorScale;
|
|
int m_nPhong;
|
|
int m_nBaseMapAlphaPhongMask;
|
|
int m_nEnvmapFresnel;
|
|
|
|
int m_nDetailTextureCombineMode;
|
|
int m_nDetailTextureBlendFactor;
|
|
|
|
// Rim lighting parameters
|
|
int m_nRimLight;
|
|
int m_nRimLightPower;
|
|
int m_nRimLightBoost;
|
|
int m_nRimMask;
|
|
|
|
int m_nSeamlessScale;
|
|
int m_nSeamlessBase;
|
|
int m_nSeamlessDetail;
|
|
|
|
// distance coded line art parameters
|
|
int m_nDistanceAlpha;
|
|
int m_nDistanceAlphaFromDetail;
|
|
|
|
int m_nSoftEdges;
|
|
int m_nEdgeSoftnessStart;
|
|
int m_nEdgeSoftnessEnd;
|
|
int m_nScaleEdgeSoftnessBasedOnScreenRes;
|
|
|
|
int m_nGlow;
|
|
int m_nGlowColor;
|
|
int m_nGlowAlpha;
|
|
int m_nGlowStart;
|
|
int m_nGlowEnd;
|
|
int m_nGlowX;
|
|
int m_nGlowY;
|
|
int m_nOutline;
|
|
int m_nOutlineColor;
|
|
int m_nOutlineAlpha;
|
|
int m_nOutlineStart0;
|
|
int m_nOutlineStart1;
|
|
int m_nOutlineEnd0;
|
|
int m_nOutlineEnd1;
|
|
int m_nScaleOutlineSoftnessBasedOnScreenRes;
|
|
|
|
int m_nSeparateDetailUVs;
|
|
int m_nDetailTextureTransform;
|
|
|
|
int m_nLinearWrite;
|
|
int m_nGammaColorRead;
|
|
|
|
int m_nDetailTint;
|
|
int m_nInvertPhongMask;
|
|
|
|
int m_nDepthBlend;
|
|
int m_nDepthBlendScale;
|
|
|
|
int m_nSelfIllumMask;
|
|
int m_nReceiveFlashlight;
|
|
|
|
int m_nBlendTintByBaseAlpha;
|
|
|
|
int m_nTintReplacesBaseColor;
|
|
|
|
#ifdef MAPBASE
|
|
// Parameter ported from Alien Swarm. See bPhongHalfLambert in DrawSkin_DX9_Internal() for more info.
|
|
int m_nPhongDisableHalfLambert;
|
|
#endif
|
|
|
|
int m_nTreeSway;
|
|
int m_nTreeSwayHeight;
|
|
int m_nTreeSwayStartHeight;
|
|
int m_nTreeSwayRadius;
|
|
int m_nTreeSwayStartRadius;
|
|
int m_nTreeSwaySpeed;
|
|
int m_nTreeSwaySpeedHighWindMultiplier;
|
|
int m_nTreeSwayStrength;
|
|
int m_nTreeSwayScrumbleSpeed;
|
|
int m_nTreeSwayScrumbleStrength;
|
|
int m_nTreeSwayScrumbleFrequency;
|
|
int m_nTreeSwayFalloffExp;
|
|
int m_nTreeSwayScrumbleFalloffExp;
|
|
int m_nTreeSwaySpeedLerpStart;
|
|
int m_nTreeSwaySpeedLerpEnd;
|
|
int m_nTreeSwayStatic;
|
|
int m_nTreeSwayStaticValues;
|
|
};
|
|
|
|
void InitParamsVertexLitGeneric_DX9( CBaseVSShader *pShader, IMaterialVar** params, const char *pMaterialName, bool bVertexLitGeneric, VertexLitGeneric_DX9_Vars_t &info );
|
|
void InitVertexLitGeneric_DX9( CBaseVSShader *pShader, IMaterialVar** params, bool bVertexLitGeneric, VertexLitGeneric_DX9_Vars_t &info );
|
|
void DrawVertexLitGeneric_DX9( CBaseVSShader *pShader, IMaterialVar** params, IShaderDynamicAPI *pShaderAPI, IShaderShadow* pShaderShadow,
|
|
bool bVertexLitGeneric, VertexLitGeneric_DX9_Vars_t &info, VertexCompressionType_t vertexCompression,
|
|
CBasePerMaterialContextData **pContextDataPtr
|
|
);
|
|
|
|
|
|
#endif // VERTEXLITGENERIC_DX9_HELPER_H
|