Skip to content

Commit

Permalink
Psychonauts: Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
magcius committed Feb 7, 2025
1 parent b3657e8 commit e8245fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/psychonauts/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ArrayBuffer>): DecodedSurfaceSW {
switch (format) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e8245fe

Please sign in to comment.