summaryrefslogtreecommitdiffstats
path: root/src/video_core/swrasterizer/fragment_lighting.h
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2017-08-02 21:20:40 +0200
committerwwylele <wwylele@gmail.com>2017-08-02 21:20:40 +0200
commiteda28266fb1f0eb96a2096cadb41b62db3dc2d2e (patch)
tree875028b167a4d779a56eab157a64feef79ce85d9 /src/video_core/swrasterizer/fragment_lighting.h
parentSwRasterizer/Lighting: reduce confusion (diff)
downloadyuzu-eda28266fb1f0eb96a2096cadb41b62db3dc2d2e.tar
yuzu-eda28266fb1f0eb96a2096cadb41b62db3dc2d2e.tar.gz
yuzu-eda28266fb1f0eb96a2096cadb41b62db3dc2d2e.tar.bz2
yuzu-eda28266fb1f0eb96a2096cadb41b62db3dc2d2e.tar.lz
yuzu-eda28266fb1f0eb96a2096cadb41b62db3dc2d2e.tar.xz
yuzu-eda28266fb1f0eb96a2096cadb41b62db3dc2d2e.tar.zst
yuzu-eda28266fb1f0eb96a2096cadb41b62db3dc2d2e.zip
Diffstat (limited to 'src/video_core/swrasterizer/fragment_lighting.h')
-rw-r--r--src/video_core/swrasterizer/fragment_lighting.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/video_core/swrasterizer/fragment_lighting.h b/src/video_core/swrasterizer/fragment_lighting.h
new file mode 100644
index 000000000..438dca926
--- /dev/null
+++ b/src/video_core/swrasterizer/fragment_lighting.h
@@ -0,0 +1,18 @@
+// Copyright 2017 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include <tuple>
+#include "common/quaternion.h"
+#include "common/vector_math.h"
+#include "video_core/pica_state.h"
+
+namespace Pica {
+
+std::tuple<Math::Vec4<u8>, Math::Vec4<u8>> ComputeFragmentsColors(
+ const Pica::LightingRegs& lighting, const Pica::State::Lighting& lighting_state,
+ const Math::Quaternion<float>& normquat, const Math::Vec3<float>& view);
+
+} // namespace Pica