Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/engine/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ export {
blitRgb48leRegion,
blitRgb48leAffine,
parseTransformMatrix,
getSrgbToHdrLut,
roundedRectAlpha,
resampleRgb48leObjectFit,
normalizeObjectFit,
Expand Down
9 changes: 0 additions & 9 deletions packages/engine/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,6 @@ export interface HfTransitionMeta {
* GSAP, Framer Motion, CSS animations, Three.js — anything works as long
* as `seek()` produces deterministic visual output for a given time.
*/
export interface HfTransitionMeta {
time: number;
duration: number;
shader: string;
ease: string;
fromScene: string;
toScene: string;
}

export interface HfProtocol {
/** Total duration of the composition in seconds */
duration: number;
Expand Down
2 changes: 1 addition & 1 deletion packages/engine/src/utils/alphaBlit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ const SRGB_TO_HLG = buildSrgbToHdrLut("hlg");
const SRGB_TO_PQ = buildSrgbToHdrLut("pq");

/** Select the correct sRGB→HDR LUT for the given transfer function. */
export function getSrgbToHdrLut(transfer: "hlg" | "pq"): Uint16Array {
function getSrgbToHdrLut(transfer: "hlg" | "pq"): Uint16Array {
return transfer === "pq" ? SRGB_TO_PQ : SRGB_TO_HLG;
}

Expand Down
3 changes: 1 addition & 2 deletions packages/producer/src/services/renderOrchestrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1562,8 +1562,7 @@ export async function executeRenderJob(
}

// Composite layers bottom-to-top
for (let layerIdx = 0; layerIdx < layers.length; layerIdx++) {
const layer = layers[layerIdx]!;
for (const [layerIdx, layer] of layers.entries()) {
if (layer.type === "hdr") {
const before = shouldLog ? countNonZeroRgb48(canvas) : 0;
const isHdrImage = nativeHdrImageIds.has(layer.element.id);
Expand Down
3 changes: 3 additions & 0 deletions packages/shader-transitions/src/hyper-shader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ export function init(config: HyperShaderConfig): GsapTimeline {
}
}

// Locally redeclared (not imported) because @hyperframes/shader-transitions
// ships as a standalone CDN bundle and must not depend on @hyperframes/engine.
// Keep this in sync with HfTransitionMeta in packages/engine/src/types.ts.
interface HfTransitionMeta {
time: number;
duration: number;
Expand Down
Loading