Attributes
Predefined
import { attributes } from "@hology/core/shader-nodes"
const uv: Vec2Node = attributes.uv
const position: Vec3Node = attributes.position
const normal: Vec3Node = attributes.normal
Transformed value helpers
import { transformed } from "@hology/core/shader-nodes"
const position: Vec4Node = transformed.position // After applying vertex transform
const mvPosition: Vec4Node = transformed.mvPosition // After applying vertex transform and the model view matrix
const normal: Vec3Node = transformed.normal // Recalculated normal after applying the vertex transform