diff options
author | bunnei <bunneidev@gmail.com> | 2015-11-26 02:49:48 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-02-05 23:20:19 +0100 |
commit | 9dfb223d26a7d700e38a4c0eec9d32d78c42f91d (patch) | |
tree | dcd826661707d299319483a261df469469e375ac /src/video_core/pica.h | |
parent | gl_shader_gen: Fix bug in LUT range (should within range [0, 255] not [0, 256]). (diff) | |
download | yuzu-9dfb223d26a7d700e38a4c0eec9d32d78c42f91d.tar yuzu-9dfb223d26a7d700e38a4c0eec9d32d78c42f91d.tar.gz yuzu-9dfb223d26a7d700e38a4c0eec9d32d78c42f91d.tar.bz2 yuzu-9dfb223d26a7d700e38a4c0eec9d32d78c42f91d.tar.lz yuzu-9dfb223d26a7d700e38a4c0eec9d32d78c42f91d.tar.xz yuzu-9dfb223d26a7d700e38a4c0eec9d32d78c42f91d.tar.zst yuzu-9dfb223d26a7d700e38a4c0eec9d32d78c42f91d.zip |
Diffstat (limited to '')
-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 { |