Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dy authored Jan 22, 2024
1 parent e133ae4 commit 8554ae8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ compile(`
`
var uv = attributes.uv
var color = attributes.color
var fColor = [0, 0, 0, 0]
var fColor = new Float32Array([0, 0, 0, 0])
var uScreenSize = uniforms.uScreenSize
function main () {
fColor = color
var position = [uv[0], -uv[1]]
var position = new Float32Array([uv[0], -uv[1]])
position[0] *= uScreenSize[1] / uScreenSize[0]
gl_Position = [position[0], position[1], 0, 1]
gl_Position = new Float32Array([position[0], position[1], 0, 1])
}
`
```
Expand Down

0 comments on commit 8554ae8

Please sign in to comment.