Skip to content

Commit

Permalink
add point link
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Dec 14, 2023
1 parent 7f760e8 commit b641b8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webgpu/lessons/webgpu-from-webgl.md
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,8 @@ WebGL goes down the screen instead of up so 0,0 is the top left vs WebGL where 0
`gl_Position` is `@builtin(position) vec4f` which may be the return value
of a vertex shader or a field in a structure returned by the vertex shader

There is no `gl_PointCoord` equivalent because points are only 1 pixel in WebGPU
There is no `gl_PointSize` and `gl_PointCoord` equivalent because points are only 1 pixel in WebGPU.
Fortunately it's easy to [draw points yourself](webgpu-points.html).

You can see other builtin variables [here](https://www.w3.org/TR/WGSL/#builtin-variables).

Expand Down

0 comments on commit b641b8e

Please sign in to comment.