aboutsummaryrefslogtreecommitdiff
path: root/sp/src/materialsystem/stdshaders/example_model_dx9.cpp
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /sp/src/materialsystem/stdshaders/example_model_dx9.cpp
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/materialsystem/stdshaders/example_model_dx9.cpp')
-rw-r--r--sp/src/materialsystem/stdshaders/example_model_dx9.cpp120
1 files changed, 60 insertions, 60 deletions
diff --git a/sp/src/materialsystem/stdshaders/example_model_dx9.cpp b/sp/src/materialsystem/stdshaders/example_model_dx9.cpp
index 87e012e3..12b6ee11 100644
--- a/sp/src/materialsystem/stdshaders/example_model_dx9.cpp
+++ b/sp/src/materialsystem/stdshaders/example_model_dx9.cpp
@@ -1,60 +1,60 @@
-//===================== Copyright (c) Valve Corporation. All Rights Reserved. ======================
-//
-// Example shader that can be applied to models
-//
-//==================================================================================================
-
-#include "BaseVSShader.h"
-#include "convar.h"
-#include "example_model_dx9_helper.h"
-
-#ifdef GAME_SHADER_DLL
-DEFINE_FALLBACK_SHADER( Mod_Example_Model, Mod_Example_Model_DX9 )
-BEGIN_VS_SHADER( Mod_Example_Model_DX9, "Help for Example Model Shader" )
-#else
-DEFINE_FALLBACK_SHADER( Example_Model, Example_Model_DX9 )
-BEGIN_VS_SHADER( Example_Model_DX9, "Help for Example Model Shader" )
-#endif
-
- BEGIN_SHADER_PARAMS
- SHADER_PARAM( ALPHATESTREFERENCE, SHADER_PARAM_TYPE_FLOAT, "0.0", "" )
- END_SHADER_PARAMS
-
- void SetupVars( ExampleModel_DX9_Vars_t& info )
- {
- info.m_nBaseTexture = BASETEXTURE;
- info.m_nBaseTextureFrame = FRAME;
- info.m_nBaseTextureTransform = BASETEXTURETRANSFORM;
- info.m_nAlphaTestReference = ALPHATESTREFERENCE;
- info.m_nFlashlightTexture = FLASHLIGHTTEXTURE;
- info.m_nFlashlightTextureFrame = FLASHLIGHTTEXTUREFRAME;
- }
-
- SHADER_INIT_PARAMS()
- {
- ExampleModel_DX9_Vars_t info;
- SetupVars( info );
- InitParamsExampleModel_DX9( this, params, pMaterialName, info );
- }
-
- SHADER_FALLBACK
- {
- return 0;
- }
-
- SHADER_INIT
- {
- ExampleModel_DX9_Vars_t info;
- SetupVars( info );
- InitExampleModel_DX9( this, params, info );
- }
-
- SHADER_DRAW
- {
- ExampleModel_DX9_Vars_t info;
- SetupVars( info );
- DrawExampleModel_DX9( this, params, pShaderAPI, pShaderShadow, info, vertexCompression, pContextDataPtr );
- }
-
-END_SHADER
-
+//===================== Copyright (c) Valve Corporation. All Rights Reserved. ======================
+//
+// Example shader that can be applied to models
+//
+//==================================================================================================
+
+#include "BaseVSShader.h"
+#include "convar.h"
+#include "example_model_dx9_helper.h"
+
+#ifdef GAME_SHADER_DLL
+DEFINE_FALLBACK_SHADER( Mod_Example_Model, Mod_Example_Model_DX9 )
+BEGIN_VS_SHADER( Mod_Example_Model_DX9, "Help for Example Model Shader" )
+#else
+DEFINE_FALLBACK_SHADER( Example_Model, Example_Model_DX9 )
+BEGIN_VS_SHADER( Example_Model_DX9, "Help for Example Model Shader" )
+#endif
+
+ BEGIN_SHADER_PARAMS
+ SHADER_PARAM( ALPHATESTREFERENCE, SHADER_PARAM_TYPE_FLOAT, "0.0", "" )
+ END_SHADER_PARAMS
+
+ void SetupVars( ExampleModel_DX9_Vars_t& info )
+ {
+ info.m_nBaseTexture = BASETEXTURE;
+ info.m_nBaseTextureFrame = FRAME;
+ info.m_nBaseTextureTransform = BASETEXTURETRANSFORM;
+ info.m_nAlphaTestReference = ALPHATESTREFERENCE;
+ info.m_nFlashlightTexture = FLASHLIGHTTEXTURE;
+ info.m_nFlashlightTextureFrame = FLASHLIGHTTEXTUREFRAME;
+ }
+
+ SHADER_INIT_PARAMS()
+ {
+ ExampleModel_DX9_Vars_t info;
+ SetupVars( info );
+ InitParamsExampleModel_DX9( this, params, pMaterialName, info );
+ }
+
+ SHADER_FALLBACK
+ {
+ return 0;
+ }
+
+ SHADER_INIT
+ {
+ ExampleModel_DX9_Vars_t info;
+ SetupVars( info );
+ InitExampleModel_DX9( this, params, info );
+ }
+
+ SHADER_DRAW
+ {
+ ExampleModel_DX9_Vars_t info;
+ SetupVars( info );
+ DrawExampleModel_DX9( this, params, pShaderAPI, pShaderShadow, info, vertexCompression, pContextDataPtr );
+ }
+
+END_SHADER
+