mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-23 05:34:10 +00:00
Add the ability to treat intensity pixels as floats.
This commit is contained in:
parent
51cec12938
commit
ad5f012a4c
1 changed files with 7 additions and 2 deletions
|
@ -63,9 +63,14 @@ class IPixel {
|
|||
|
||||
public:
|
||||
IPixel() : m_Intensity(0.0f) { }
|
||||
IPixel(float f) : m_Intensity(f) { }
|
||||
|
||||
explicit IPixel(uint32 rgba) {
|
||||
Unpack(rgba);
|
||||
operator float() const {
|
||||
return m_Intensity;
|
||||
}
|
||||
|
||||
IPixel operator=(const float &f) {
|
||||
return m_Intensity = f;
|
||||
}
|
||||
|
||||
// Take all of the components, transform them to their 8-bit variants,
|
||||
|
|
Loading…
Reference in a new issue