const makeViewUniforms: () => {
projectionViewMatrix: {
current: mat3,
},
projectionMatrix: {
current: mat3,
},
viewMatrix: {
current: mat3,
},
inverseProjectionViewMatrix: {
current: mat3,
},
inverseProjectionMatrix: {
current: mat3,
},
inverseViewMatrix: {
current: mat3,
},
viewPosition: {
current: vec2,
},
viewResolution: {
current: vec2,
},
viewSize: {
current: vec2,
},
viewPixelRatio: {
current: number,
},
viewWorldScale: {
current: number,
},
}
packages / 2d-canvas / src / providers / view-provider.ts