gl_rasterizer: use texture buffer for fog LUT

This commit is contained in:
wwylele 2017-06-22 17:22:45 +03:00
parent f1e377f57e
commit 8978ecb09c
7 changed files with 32 additions and 29 deletions

View file

@ -111,6 +111,14 @@ struct State {
BitField<0, 13, s32> difference; // 1.1.11 fixed point
BitField<13, 11, u32> value; // 0.0.11 fixed point
float ToFloat() const {
return static_cast<float>(value) / 2047.0f;
}
float DiffToFloat() const {
return static_cast<float>(difference) / 2047.0f;
}
};
std::array<LutEntry, 128> lut;