diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /sp/src/public/mathlib/bumpvects.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/public/mathlib/bumpvects.h')
| -rw-r--r-- | sp/src/public/mathlib/bumpvects.h | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/sp/src/public/mathlib/bumpvects.h b/sp/src/public/mathlib/bumpvects.h index e0ba73fb..6939ca05 100644 --- a/sp/src/public/mathlib/bumpvects.h +++ b/sp/src/public/mathlib/bumpvects.h @@ -1,37 +1,37 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $Workfile: $
-// $Date: $
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef BUMPVECTS_H
-#define BUMPVECTS_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include "mathlib/mathlib.h"
-
-#define OO_SQRT_2 0.70710676908493042f
-#define OO_SQRT_3 0.57735025882720947f
-#define OO_SQRT_6 0.40824821591377258f
-// sqrt( 2 / 3 )
-#define OO_SQRT_2_OVER_3 0.81649661064147949f
-
-#define NUM_BUMP_VECTS 3
-
-const TableVector g_localBumpBasis[NUM_BUMP_VECTS] =
-{
- { OO_SQRT_2_OVER_3, 0.0f, OO_SQRT_3 },
- { -OO_SQRT_6, OO_SQRT_2, OO_SQRT_3 },
- { -OO_SQRT_6, -OO_SQRT_2, OO_SQRT_3 }
-};
-
-void GetBumpNormals( const Vector& sVect, const Vector& tVect, const Vector& flatNormal,
- const Vector& phongNormal, Vector bumpNormals[NUM_BUMP_VECTS] );
-
-#endif // BUMPVECTS_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $Workfile: $ +// $Date: $ +// $NoKeywords: $ +//=============================================================================// + +#ifndef BUMPVECTS_H +#define BUMPVECTS_H + +#ifdef _WIN32 +#pragma once +#endif + +#include "mathlib/mathlib.h" + +#define OO_SQRT_2 0.70710676908493042f +#define OO_SQRT_3 0.57735025882720947f +#define OO_SQRT_6 0.40824821591377258f +// sqrt( 2 / 3 ) +#define OO_SQRT_2_OVER_3 0.81649661064147949f + +#define NUM_BUMP_VECTS 3 + +const TableVector g_localBumpBasis[NUM_BUMP_VECTS] = +{ + { OO_SQRT_2_OVER_3, 0.0f, OO_SQRT_3 }, + { -OO_SQRT_6, OO_SQRT_2, OO_SQRT_3 }, + { -OO_SQRT_6, -OO_SQRT_2, OO_SQRT_3 } +}; + +void GetBumpNormals( const Vector& sVect, const Vector& tVect, const Vector& flatNormal, + const Vector& phongNormal, Vector bumpNormals[NUM_BUMP_VECTS] ); + +#endif // BUMPVECTS_H |