Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
nakednous committed Mar 29, 2024
1 parent aa2a953 commit aeb185a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ The `readShader` and `makeShader` functions take a fragment shader —specified
- The `matrices` parameter uses the following bit mask fields `Tree.vMatrix`, `Tree.pMatrix`, `Tree.mvMatrix`, `Tree.pmvMatrix`, and `Tree.NONE` which is the default, to determine how vertices are projected onto NDC.
- The fragment shader's `varyings` variables are parsed to determine which and how vertex attributes should be interpolated from the vertex shader, following these naming conventions:

| varying name | space |
|--------------|-------------|
| color4 | color |
| texcoords2 | texture |
| position2 | local space |
| position3 | local space |
| position4 | eye space |
| normal3 | eye space |
| type | name | space |
|------|------------|---------|
| vec4 | color4 | color |
| vec2 | texcoords2 | texture |
| vec2 | position2 | local |
| vec3 | position3 | local |
| vec4 | position4 | eye |
| vec3 | normal3 | eye |

**Examples:**

Expand Down

0 comments on commit aeb185a

Please sign in to comment.