diff options
author | bunnei <bunneidev@gmail.com> | 2015-11-25 20:49:48 -0500 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-02-05 17:20:19 -0500 |
commit | 9dfb223d26a7d700e38a4c0eec9d32d78c42f91d (patch) | |
tree | dcd826661707d299319483a261df469469e375ac /src/video_core/pica.h | |
parent | 449902b5583d6a2dbb1e4aea9802da5ad2493981 (diff) |
gl_rasterizer: Initial implementation of bump mapping.
Diffstat (limited to 'src/video_core/pica.h')
-rw-r--r-- | src/video_core/pica.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h index 267070e45..809b16d2b 100644 --- a/src/video_core/pica.h +++ b/src/video_core/pica.h @@ -702,6 +702,12 @@ struct Regs { LN = 3, // Cosine of the angle between the light and the normal vectors }; + enum class LightingBumpMode : u32 { + None = 0, + NormalMap = 1, + TangentMap = 2, + }; + union LightColor { BitField< 0, 10, u32> b; BitField<10, 10, u32> g; @@ -775,7 +781,10 @@ struct Regs { union { BitField< 2, 2, LightingFresnelSelector> fresnel_selector; BitField< 4, 4, LightingConfig> config; + BitField<22, 2, u32> bump_selector; // 0: Texture 0, 1: Texture 1, 2: Texture 2 BitField<27, 1, u32> clamp_highlights; // 1: GL_TRUE, 0: GL_FALSE + BitField<28, 2, LightingBumpMode> bump_mode; // 1: GL_TRUE, 0: GL_FALSE + BitField<30, 1, u32> bump_renorm; // 0: GL_TRUE, 1: GL_FALSE }; union { |