diff options
author | bunnei <bunneidev@gmail.com> | 2015-11-14 23:23:08 -0500 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-02-05 17:17:30 -0500 |
commit | bf89870437ebb0d983cfc20c3ac0490169f59f44 (patch) | |
tree | 8bf0f8121c02e66fd5aeeff8cacb7e288c84ae90 /src/video_core/pica.h | |
parent | e34fa6365ff87af247b0ae8ed880c4032bcb2ed0 (diff) |
renderer_opengl: Initial implementation of basic specular lighting.
Diffstat (limited to 'src/video_core/pica.h')
-rw-r--r-- | src/video_core/pica.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h index aad9effdc..c63d87a36 100644 --- a/src/video_core/pica.h +++ b/src/video_core/pica.h @@ -659,6 +659,8 @@ struct Regs { enum class LightingLutInput { 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 LN = 3, // Cosine of the angle between the light and the normal vectors }; @@ -709,7 +711,11 @@ struct Regs { LightColor global_ambient; // emission + (material.ambient * lighting.ambient) INSERT_PADDING_WORDS(0x1); BitField<0, 3, u32> src_num; // number of enabled lights - 1 - INSERT_PADDING_WORDS(0x1); + + union { + BitField< 4, 4, u32> config; + BitField<27, 1, u32> clamp_highlights; + } light_env; union { // Each bit specifies whether distance attenuation should be applied for the |