summaryrefslogtreecommitdiffstats
path: root/src/video_core/pica.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-11-15 05:23:08 +0100
committerbunnei <bunneidev@gmail.com>2016-02-05 23:17:30 +0100
commitbf89870437ebb0d983cfc20c3ac0490169f59f44 (patch)
tree8bf0f8121c02e66fd5aeeff8cacb7e288c84ae90 /src/video_core/pica.h
parentrenderer_opengl: Implement HW fragment lighting distance attenuation. (diff)
downloadyuzu-bf89870437ebb0d983cfc20c3ac0490169f59f44.tar
yuzu-bf89870437ebb0d983cfc20c3ac0490169f59f44.tar.gz
yuzu-bf89870437ebb0d983cfc20c3ac0490169f59f44.tar.bz2
yuzu-bf89870437ebb0d983cfc20c3ac0490169f59f44.tar.lz
yuzu-bf89870437ebb0d983cfc20c3ac0490169f59f44.tar.xz
yuzu-bf89870437ebb0d983cfc20c3ac0490169f59f44.tar.zst
yuzu-bf89870437ebb0d983cfc20c3ac0490169f59f44.zip
Diffstat (limited to 'src/video_core/pica.h')
-rw-r--r--src/video_core/pica.h8
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