diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-02-12 21:33:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-12 21:33:26 +0100 |
commit | 443bb3d522916f9be2d27fc8b3d7b5cc942213df (patch) | |
tree | 5a83052ad2f5888a282d4db2ef9b9f2d4e647a60 /src/video_core/regs_lighting.h | |
parent | citra-qt: Don't attempt to scan files with unsupported extensions (#2402) (diff) | |
parent | VideoCore: Split u64 Pica reg unions into 2 separate u32 unions (diff) | |
download | yuzu-443bb3d522916f9be2d27fc8b3d7b5cc942213df.tar yuzu-443bb3d522916f9be2d27fc8b3d7b5cc942213df.tar.gz yuzu-443bb3d522916f9be2d27fc8b3d7b5cc942213df.tar.bz2 yuzu-443bb3d522916f9be2d27fc8b3d7b5cc942213df.tar.lz yuzu-443bb3d522916f9be2d27fc8b3d7b5cc942213df.tar.xz yuzu-443bb3d522916f9be2d27fc8b3d7b5cc942213df.tar.zst yuzu-443bb3d522916f9be2d27fc8b3d7b5cc942213df.zip |
Diffstat (limited to 'src/video_core/regs_lighting.h')
-rw-r--r-- | src/video_core/regs_lighting.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/regs_lighting.h b/src/video_core/regs_lighting.h index 548a6c4d5..6793405d9 100644 --- a/src/video_core/regs_lighting.h +++ b/src/video_core/regs_lighting.h @@ -34,7 +34,7 @@ struct LightingRegs { * configurations that require more LUTs, more cycles are required on HW to perform lighting * computations. */ - enum class LightingConfig { + enum class LightingConfig : u32 { Config0 = 0, ///< Reflect Red, Distribution 0, Spotlight Config1 = 1, ///< Reflect Red, Fresnel, Spotlight Config2 = 2, ///< Reflect Red, Distribution 0/1 @@ -48,7 +48,7 @@ struct LightingRegs { }; /// Selects which lighting components are affected by fresnel - enum class LightingFresnelSelector { + enum class LightingFresnelSelector : u32 { None = 0, ///< Fresnel is disabled PrimaryAlpha = 1, ///< Primary (diffuse) lighting alpha is affected by fresnel SecondaryAlpha = 2, ///< Secondary (specular) lighting alpha is affected by fresnel @@ -58,7 +58,7 @@ struct LightingRegs { }; /// Factor used to scale the output of a lighting LUT - enum class LightingScale { + enum class LightingScale : u32 { Scale1 = 0, ///< Scale is 1x Scale2 = 1, ///< Scale is 2x Scale4 = 2, ///< Scale is 4x @@ -68,7 +68,7 @@ struct LightingRegs { Scale1_2 = 7, ///< Scale is 0.5x }; - enum class LightingLutInput { + enum class LightingLutInput : u32 { NH = 0, // Cosine of the angle between the normal and half-angle vectors VH = 1, // Cosine of the angle between the view and half-angle vectors NV = 2, // Cosine of the angle between the normal and the view vector |