diff --git a/src/psychonauts/render.ts b/src/psychonauts/render.ts index dd4a1af1e..9697f619f 100644 --- a/src/psychonauts/render.ts +++ b/src/psychonauts/render.ts @@ -20,6 +20,7 @@ import { GfxrAttachmentSlot } from '../gfx/render/GfxRenderGraph.js'; import { AABB } from '../Geometry.js'; import { setAttachmentStateSimple } from '../gfx/helpers/GfxMegaStateDescriptorHelpers.js'; import { GfxRenderCache } from "../gfx/render/GfxRenderCache.js"; +import { GfxShaderLibrary } from "../gfx/helpers/GfxShaderLibrary.js"; function decodeTextureData(format: TextureFormat, width: number, height: number, pixels: Uint8Array): DecodedSurfaceSW { switch (format) { @@ -93,6 +94,8 @@ class PsychonautsProgram extends DeviceProgram { public override both = ` precision mediump float; +${GfxShaderLibrary.MatrixLibrary} + // Expected to be constant across the entire scene. layout(std140) uniform ub_SceneParams { Mat4x4 u_Projection;