SwRasterizer/Lighting: implement bump mapping

This commit is contained in:
wwylele 2017-08-18 15:04:56 +03:00
parent 46d1ca768d
commit 3e478ca131
3 changed files with 27 additions and 8 deletions

View file

@ -13,6 +13,7 @@ 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);
const Math::Quaternion<float>& normquat, const Math::Vec3<float>& view,
const Math::Vec4<u8> (&texture_color)[4]);
} // namespace Pica