| GLSL | TSL |
|---|---|
| position | positionGeometry |
| transformed | positionLocal |
| transformedNormal | normalLocal |
| vWorldPosition | positionWorld |
| – | normalWorld |
| gl_FrongFacing | frontFacing |
| vColor | vertexColor() |
| vUv / uv | uv() |
| vNormal | normalView |
| – | cameraPosition |
| – | cameraPosition |
| – | cameraNear |
| – | cameraFar |
| modelMatrix | modelWorldMatrix |
| modelViewMatrix | modelViewMatrix |
| projectionMatrix | cameraProjectionMatrix |
| diffuseColor | material.colorNode |
| gl_FragColor | material.fragmentNode |
| texture2D(tex, uv) | texture(tex, uv) |
| textureCube(tex, dir) | cubeTexture(tex, dir) |
| gl_FragCoord | screenCoordinate |
| gl_PointCoord | SpriteNodeMaterial/PointsNodeMaterial에서 uv() |
| gl_InstanceID | instanceIndex |
| gl_VertexIndex | vertexIndex |
| – | time |
| – | deltaTime |
| – | frameId |
