Fix shader code. Thanks Mesa!
On the other hand, the kind of shit fglrx just lets through boggles the mind.
This commit is contained in:
parent
bb70c39811
commit
19c30e3ddd
5 changed files with 11 additions and 11 deletions
|
@ -9,7 +9,7 @@ uniform vec4 flash;
|
|||
|
||||
varying vec2 v_texCoord;
|
||||
|
||||
const vec3 lumaF = { .299, .587, .114 };
|
||||
const vec3 lumaF = vec3(.299, .587, .114);
|
||||
|
||||
void main()
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ void main()
|
|||
vec4 frag = texture2D(texture, v_texCoord);
|
||||
|
||||
/* Apply gray */
|
||||
const float luma = dot(frag.rgb, lumaF);
|
||||
float luma = dot(frag.rgb, lumaF);
|
||||
frag.rgb = mix(frag.rgb, vec3(luma), tone.w);
|
||||
|
||||
/* Apply tone */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue