Fixed shader examples
This commit is contained in:
parent
0f2fb0e2f6
commit
0e826d8dec
2 changed files with 10 additions and 10 deletions
|
@ -3,7 +3,7 @@ uniform vec2 mouse;
|
|||
|
||||
void main()
|
||||
{
|
||||
float factor = 5 + 100 * length(mouse);
|
||||
float factor = 5.0 + 100.0 * length(mouse);
|
||||
vec2 pos = floor(gl_TexCoord[0].xy * factor + 0.5) / factor;
|
||||
|
||||
gl_FragColor = texture2D(texture, pos) * gl_Color;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue