gpu_tonemapper: Adjust sample points to maintain linearity

Adjust texture sample points to maintain linearity throughout the
sample range

CRs-Fixed: 1110654
Change-Id: I2c198c9f330a0b6001d2eda28c0355f2c9ecbde4
This commit is contained in:
Arun Kumar K.R
2017-02-16 19:12:20 -08:00
committed by Sushil Chauhan
parent f0b7c337ec
commit 1d1e57dc0e
6 changed files with 67 additions and 16 deletions

View File

@@ -120,6 +120,13 @@ void engine_deleteProgram(unsigned int id)
}
}
//-----------------------------------------------------------------------------
void engine_setData2f(int location, float* data)
//-----------------------------------------------------------------------------
{
GL(glUniform2f(location, data[0], data[1]));
}
//-----------------------------------------------------------------------------
unsigned int engine_load3DTexture(void *colorMapData, int sz, int format)
//-----------------------------------------------------------------------------