Fix bias typo

This commit is contained in:
Anthony Miles 2019-12-01 12:30:06 +13:00 committed by patrickvl
parent 650174ea83
commit ef3b5d7217
1 changed files with 1 additions and 2 deletions

View File

@ -33,8 +33,7 @@ int toXboxIndex(float src0) {
// some titles produce values just below the threshold of the next integer.
// We can add a small bias to make sure it's bumped over the threshold
// Test Case: Azurik (divides indexes 755, then scales them back in the vertex shader)
return floor(src0) + 0.00000001; // TODO test
}
return floor(src0 + 0.0001); // TODO test
float x_dph(float4 src0, float4 src1) {
return dot(src0, src1) + src1.w;