PosterizationFilter compilation error fix for Mac git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7058 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
64a404a939
commit
d758929f15
@ -9,9 +9,9 @@ void main() {
|
|||||||
vec4 texVal = texture2D(m_Texture, texCoord);
|
vec4 texVal = texture2D(m_Texture, texCoord);
|
||||||
|
|
||||||
texVal = pow(texVal, vec4(m_Gamma));
|
texVal = pow(texVal, vec4(m_Gamma));
|
||||||
texVal = texVal * m_NumColors;
|
texVal = texVal * vec4(m_NumColors);
|
||||||
texVal = floor(texVal);
|
texVal = floor(texVal);
|
||||||
texVal = texVal / m_NumColors;
|
texVal = texVal / vec4(m_NumColors);
|
||||||
texVal = pow(texVal, vec4(1.0/m_Gamma));
|
texVal = pow(texVal, vec4(1.0/m_Gamma));
|
||||||
|
|
||||||
gl_FragColor = mix(texture2D(m_Texture, texCoord), texVal, m_Strength);
|
gl_FragColor = mix(texture2D(m_Texture, texCoord), texVal, m_Strength);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user