convert from 1 to 1.0
integers are not allowed there
This commit is contained in:
parent
086d3e1e8f
commit
df1b259802
@ -191,11 +191,11 @@ Item {
|
||||
"void main() {" +
|
||||
|
||||
"highp float wave_x = qt_TexCoord0.x - dx*0.0025" +
|
||||
" * (1/(1+abs(qt_TexCoord0.x-(startX))))" +
|
||||
" * (1/(1+abs(qt_TexCoord0.y-(startY))));" +
|
||||
" * (1.0/(1.0+abs(qt_TexCoord0.x-(startX))))" +
|
||||
" * (1.0/(1.0+abs(qt_TexCoord0.y-(startY))));" +
|
||||
"highp float wave_y = qt_TexCoord0.y - dy*0.0025" +
|
||||
" * 1/(1+abs(qt_TexCoord0.x-(startX)))" +
|
||||
" * 1/(1+abs(qt_TexCoord0.y-(startY)));" +
|
||||
" * 1.0/(1.0+abs(qt_TexCoord0.x-(startX)))" +
|
||||
" * 1.0/(1.0+abs(qt_TexCoord0.y-(startY)));" +
|
||||
"gl_FragColor = texture2D(source, vec2(wave_x, wave_y));" +
|
||||
"}"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user