Merge pull request #2743 from wwylele/wrap-fix

pica/rasterizer: implement/stub texture wrap mode 4-7
This commit is contained in:
Yuri Kunde Schlesner
2017-06-13 21:28:13 -07:00
committed by GitHub
4 changed files with 48 additions and 12 deletions

View File

@ -30,10 +30,10 @@ struct TexturingRegs {
Repeat = 2,
MirroredRepeat = 3,
// Mode 4-7 produces some weird result and may be just invalid:
// 4: Positive coord: clamp to edge; negative coord: repeat
// 5: Positive coord: clamp to border; negative coord: repeat
// 6: Repeat
// 7: Repeat
ClampToEdge2 = 4, // Positive coord: clamp to edge; negative coord: repeat
ClampToBorder2 = 5, // Positive coord: clamp to border; negative coord: repeat
Repeat2 = 6, // Same as Repeat
Repeat3 = 7, // Same as Repeat
};
enum TextureFilter : u32 {