Skip to content

Commit 8554ae8

Browse files
authored
Update readme.md
1 parent e133ae4 commit 8554ae8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ compile(`
3838
`
3939
var uv = attributes.uv
4040
var color = attributes.color
41-
var fColor = [0, 0, 0, 0]
41+
var fColor = new Float32Array([0, 0, 0, 0])
4242
var uScreenSize = uniforms.uScreenSize
4343
4444
function main () {
4545
fColor = color
46-
var position = [uv[0], -uv[1]]
46+
var position = new Float32Array([uv[0], -uv[1]])
4747
position[0] *= uScreenSize[1] / uScreenSize[0]
48-
gl_Position = [position[0], position[1], 0, 1]
48+
gl_Position = new Float32Array([position[0], position[1], 0, 1])
4949
}
5050
`
5151
```

0 commit comments

Comments
 (0)