swrasterizer: implement shadow map sampling

This commit is contained in:
wwylele 2018-03-12 19:42:51 +02:00
parent ce2ad7436e
commit ae75d3032f
2 changed files with 41 additions and 5 deletions

View file

@ -158,7 +158,12 @@ struct TexturingRegs {
return address * 8;
}
INSERT_PADDING_WORDS(0x3);
union {
BitField<0, 1, u32> orthographic; // 0: enable perspective divide
BitField<1, 23, u32> bias; // 23-bit fraction
} shadow;
INSERT_PADDING_WORDS(0x2);
BitField<0, 4, TextureFormat> texture0_format;
BitField<0, 1, u32> fragment_lighting_enable;
INSERT_PADDING_WORDS(0x1);