gl_rasterizer: use texture buffer for fog LUT
This commit is contained in:
parent
f1e377f57e
commit
8978ecb09c
7 changed files with 32 additions and 29 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue