@pinkaphant/kolmo 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/README.md +44 -2
  2. package/bin/kolmo.mjs +150 -0
  3. package/dist/engine/index.d.ts +8 -0
  4. package/dist/engine/index.js +3 -0
  5. package/dist/engine/kolmoActor.d.ts +6 -0
  6. package/dist/engine/kolmoIsland.d.ts +17 -0
  7. package/dist/engine/kolmoLongDrive.d.ts +13 -0
  8. package/dist/engine/kolmoRigs.d.ts +13 -0
  9. package/dist/engine/kolmoStore.d.ts +74 -0
  10. package/dist/engine/kolmoSurface.d.ts +18 -0
  11. package/dist/engine/kolmoVehicle.d.ts +32 -0
  12. package/dist/engine/kolmoWorld.d.ts +51 -0
  13. package/dist/engine/longDriveKit.d.ts +19 -0
  14. package/dist/engine/mainlandMacroCell.d.ts +19 -0
  15. package/dist/engine-BeKvBM8d.js +1745 -0
  16. package/dist/importer/ChopShopPanel.d.ts +44 -0
  17. package/dist/importer/DomainWorkshopPanel.d.ts +17 -0
  18. package/dist/importer/GateHudBar.d.ts +29 -0
  19. package/dist/importer/GlbImportGate.d.ts +7 -0
  20. package/dist/importer/ImperativeVehicleRig.d.ts +9 -0
  21. package/dist/importer/ImporterPlinthUikitTags.d.ts +19 -0
  22. package/dist/importer/Step1CalibrationPlinth.d.ts +38 -0
  23. package/dist/importer/Step2UniversalPad.d.ts +18 -0
  24. package/dist/importer/VfxEmitterPool.d.ts +8 -0
  25. package/dist/importer/chopShopActions.d.ts +44 -0
  26. package/dist/importer/gateStore.d.ts +73 -0
  27. package/dist/importer/glbNormalizer.d.ts +22 -0
  28. package/dist/importer/importerWebMcp.d.ts +37 -0
  29. package/dist/importer/index.d.ts +17 -0
  30. package/dist/importer/index.js +3 -0
  31. package/dist/importer/khrCompiler.d.ts +23 -0
  32. package/dist/importer/launcherBake.d.ts +15 -0
  33. package/dist/importer/meshIslands.d.ts +59 -0
  34. package/dist/importer/surfaceCutter.d.ts +27 -0
  35. package/dist/importer/surfaceTopology.d.ts +40 -0
  36. package/dist/importer/universalGateBake.d.ts +41 -0
  37. package/dist/importer/usdToGlb.d.ts +11 -0
  38. package/dist/importer/useChopShopController.d.ts +94 -0
  39. package/dist/importer/vehiclePanelAnim.d.ts +25 -0
  40. package/dist/importer/wheelAxlePairing.d.ts +19 -0
  41. package/dist/importer-D9bdcGTh.js +5113 -0
  42. package/dist/index.d.ts +16 -0
  43. package/dist/index.js +14 -0
  44. package/dist/junk/DestructibleTarget.d.ts +18 -0
  45. package/dist/junk/KolmoJunk.d.ts +14 -0
  46. package/dist/junk/ShardPieces.d.ts +10 -0
  47. package/dist/junk/TargetDecals.d.ts +18 -0
  48. package/dist/junk/bvhShatter.d.ts +7 -0
  49. package/dist/junk/bvhTriCollector.d.ts +20 -0
  50. package/dist/junk/index.d.ts +12 -0
  51. package/dist/junk/index.js +1 -0
  52. package/dist/junk/junkGeometry.d.ts +34 -0
  53. package/dist/junk/junkImportSanitize.d.ts +6 -0
  54. package/dist/junk/junkImporter.d.ts +25 -0
  55. package/dist/junk/junkLabelCanvas.d.ts +7 -0
  56. package/dist/junk/junkLabels.d.ts +31 -0
  57. package/dist/junk/junkTypes.d.ts +48 -0
  58. package/dist/junk/targetHelpers.d.ts +56 -0
  59. package/dist/junk/targetHitLogic.d.ts +30 -0
  60. package/dist/junk/useTargetAssets.d.ts +24 -0
  61. package/dist/junk-B4bC1zAl.js +1049 -0
  62. package/dist/kolmoSurface-DTnrFXH0.js +558 -0
  63. package/dist/schema/kolmoSchema.d.ts +69 -0
  64. package/dist/shaders/celestialBackdrop.d.ts +22 -0
  65. package/dist/shaders/index.d.ts +6 -0
  66. package/dist/shaders/index.js +1 -0
  67. package/dist/shaders/plumeAndSparkle.d.ts +14 -0
  68. package/dist/shaders/ps2GlslShared.d.ts +20 -0
  69. package/dist/shaders/ps2MaterialsTSL.d.ts +23 -0
  70. package/dist/shaders/ps2MaterialsWebGL.d.ts +15 -0
  71. package/dist/shaders/ps2RoadWebGL.d.ts +7 -0
  72. package/dist/shaders/ps2TerrainWebGL.d.ts +8 -0
  73. package/dist/shaders/ps2Textures.d.ts +22 -0
  74. package/dist/shaders/retroPalettes.d.ts +24 -0
  75. package/dist/shaders/retroShader.d.ts +69 -0
  76. package/dist/shaders-GS71Ek1A.js +1383 -0
  77. package/dist/world/frontage.d.ts +26 -0
  78. package/dist/world/index.d.ts +9 -0
  79. package/dist/world/index.js +3 -0
  80. package/dist/world/infiniteWorld2D.d.ts +24 -0
  81. package/dist/world/island.d.ts +29 -0
  82. package/dist/world/macroCellSchema.d.ts +72 -0
  83. package/dist/world/macroKnightAStar.d.ts +11 -0
  84. package/dist/world/random.d.ts +23 -0
  85. package/dist/world/road.d.ts +37 -0
  86. package/dist/world/roadRibbon.d.ts +44 -0
  87. package/dist/world/terrain.d.ts +62 -0
  88. package/dist/world/worldTypes.d.ts +39 -0
  89. package/dist/world-PRWPYrlx.js +947 -0
  90. package/dist/worldTypes-Z0KfdCd0.js +226 -0
  91. package/package.json +105 -4
@@ -0,0 +1,20 @@
1
+ import type * as THREE from "three";
2
+ export declare const SHARED_PS2_GLSL_HELPERS = "\n // Branchless 4x4 Bayer matrix mapped to [0.5/16 .. 15.5/16] so w=0 and w=1 never speckle.\n float ps2Bayer4x4(vec2 cellCoord) {\n vec2 cell = floor(cellCoord);\n vec2 p0 = mod(cell, 2.0);\n vec2 p1 = mod(floor(cell * 0.5), 2.0);\n float b0 = 2.0 * abs(p0.x - p0.y) + p0.y;\n float b1 = 2.0 * abs(p1.x - p1.y) + p1.y;\n return (4.0 * b0 + b1 + 0.5) * 0.0625;\n }\n\n float ps2MacroVariation(vec2 worldXZ) {\n vec2 p = worldXZ * 0.037;\n float n = sin(p.x * 1.7 + cos(p.y * 1.3)) * 0.5 + 0.5;\n return mix(0.88, 1.10, n);\n }\n\n // PS2 Graphics Synthesizer 16-bit (RGB555) DIMX screen-space framebuffer dither\n vec3 ps2QuantizeRGB555(vec3 srgbColor, vec2 fragCoord, float pixelScale, float strength) {\n if (strength <= 0.001) return srgbColor;\n float bayer = ps2Bayer4x4(fragCoord / max(1.0, pixelScale)) - 0.5;\n vec3 quantized = clamp(floor(srgbColor * 31.0 + bayer + 0.5) / 31.0, 0.0, 1.0);\n return mix(srgbColor, quantized, strength);\n }\n";
3
+ export interface PS2TerrainMaterialOptions {
4
+ readonly tileScale?: number;
5
+ readonly ditherTexelsPerMeter?: number;
6
+ readonly splatContrast?: number;
7
+ readonly cavityStrength?: number;
8
+ readonly ps2ColorQuantize?: number;
9
+ readonly screenPixelScale?: number;
10
+ }
11
+ export interface PS2RoadMaterialOptions {
12
+ readonly preset: "ASPHALT" | "DIRT";
13
+ readonly tileScale?: number;
14
+ readonly ditherTexelsPerMeter?: number;
15
+ readonly cavityStrength?: number;
16
+ readonly ps2ColorQuantize?: number;
17
+ readonly screenPixelScale?: number;
18
+ readonly centerLineColor?: THREE.ColorRepresentation;
19
+ readonly edgeLineColor?: THREE.ColorRepresentation;
20
+ }
@@ -0,0 +1,23 @@
1
+ import * as THREE from "three/webgpu";
2
+ import type { PS2TextureBundle } from "./ps2Textures.js";
3
+ export declare function createPS2TerrainMaterialTSL(textures: PS2TextureBundle): {
4
+ material: THREE.MeshLambertNodeMaterial;
5
+ uniforms: {
6
+ uTileScale: THREE.UniformNode<"float", number>;
7
+ uDitherTexels: THREE.UniformNode<"float", number>;
8
+ uSplatContrast: THREE.UniformNode<"float", number>;
9
+ uCavityStrength: THREE.UniformNode<"float", number>;
10
+ uPs2Quantize: THREE.UniformNode<"float", number>;
11
+ uPixelScale: THREE.UniformNode<"float", number>;
12
+ };
13
+ };
14
+ export declare function createPS2RoadMaterialTSL(textures: PS2TextureBundle, preset?: "ASPHALT" | "DIRT"): {
15
+ material: THREE.MeshLambertNodeMaterial;
16
+ uniforms: {
17
+ uTileScale: THREE.UniformNode<"float", number>;
18
+ uDitherTexels: THREE.UniformNode<"float", number>;
19
+ uCavityStrength: THREE.UniformNode<"float", number>;
20
+ uPs2Quantize: THREE.UniformNode<"float", number>;
21
+ uPixelScale: THREE.UniformNode<"float", number>;
22
+ };
23
+ };
@@ -0,0 +1,15 @@
1
+ import * as THREE from "three";
2
+ import type { WorldGenResult } from "../world/worldTypes.js";
3
+ import type { PS2RoadMaterialOptions, PS2TerrainMaterialOptions } from "./ps2GlslShared.js";
4
+ import { createPS2RoadMaterialWebGL } from "./ps2RoadWebGL.js";
5
+ import { createPS2TerrainMaterialWebGL } from "./ps2TerrainWebGL.js";
6
+ import { type PS2TextureBundle } from "./ps2Textures.js";
7
+ export { createPS2RoadMaterialWebGL, createPS2TerrainMaterialWebGL };
8
+ export type { PS2RoadMaterialOptions, PS2TerrainMaterialOptions };
9
+ export interface MountedPS2WorldScene {
10
+ readonly texBundle: PS2TextureBundle;
11
+ readonly terrainGroup: THREE.Group;
12
+ readonly asphaltMesh: THREE.Mesh;
13
+ readonly dirtMesh: THREE.Mesh;
14
+ }
15
+ export declare function mountPS2WorldMeshes(scene: THREE.Scene, worldData: WorldGenResult, chunkGeometries: readonly THREE.BufferGeometry[], asphaltGeometry: THREE.BufferGeometry, dirtGeometry: THREE.BufferGeometry): MountedPS2WorldScene;
@@ -0,0 +1,7 @@
1
+ import * as THREE from "three";
2
+ import { type PS2RoadMaterialOptions } from "./ps2GlslShared.js";
3
+ import { type PS2TextureBundle } from "./ps2Textures.js";
4
+ export declare function createPS2RoadMaterialWebGL(textures: PS2TextureBundle, opts: PS2RoadMaterialOptions): {
5
+ material: THREE.MeshLambertMaterial;
6
+ uniforms: Record<string, THREE.IUniform>;
7
+ };
@@ -0,0 +1,8 @@
1
+ import * as THREE from "three";
2
+ import { type PS2TerrainMaterialOptions } from "./ps2GlslShared.js";
3
+ import type { PS2TextureBundle } from "./ps2Textures.js";
4
+ export declare function createPS2TerrainMaterialWebGL(textures: PS2TextureBundle, opts?: PS2TerrainMaterialOptions): {
5
+ material: THREE.MeshLambertMaterial;
6
+ depthMaterial: THREE.MeshDepthMaterial;
7
+ uniforms: Record<string, THREE.IUniform>;
8
+ };
@@ -0,0 +1,22 @@
1
+ import * as THREE from "three";
2
+ import { type WorldGenResult } from "../world/worldTypes.js";
3
+ export declare const SPLAT_LAYER: {
4
+ readonly DIRT: 0;
5
+ readonly GRASS: 1;
6
+ readonly SAND: 2;
7
+ readonly ROCK: 3;
8
+ readonly GRAVEL: 4;
9
+ readonly FOREST: 5;
10
+ readonly SNOW: 6;
11
+ readonly ASPHALT: 7;
12
+ };
13
+ export interface PS2TextureBundle {
14
+ readonly splat0Tex: THREE.DataTexture;
15
+ readonly splat1Tex: THREE.DataTexture;
16
+ readonly alphaTex: THREE.DataTexture;
17
+ readonly detailArrayTex: THREE.DataArrayTexture;
18
+ readonly detailSliceTexs: readonly THREE.DataTexture[];
19
+ readonly dispose: () => void;
20
+ }
21
+ export declare function generatePS2DetailSlices(seed: number, size?: number): Uint8Array[];
22
+ export declare function createPS2WorldTextures(worldData: WorldGenResult): PS2TextureBundle;
@@ -0,0 +1,24 @@
1
+ import * as THREE from "three";
2
+ export type RetroColorMode = "off" | "rgb555" | "rgb444" | "rgb332" | "crunchy16" | "crunchy64";
3
+ export interface RetroColorModeSpec {
4
+ id: RetroColorMode;
5
+ label: string;
6
+ shortLabel: string;
7
+ description: string;
8
+ }
9
+ export declare const RETRO_COLOR_MODES: readonly RetroColorModeSpec[];
10
+ export declare const PALETTE_CRUNCHY_16: readonly string[];
11
+ export declare const PALETTE_CRUNCHY_64: readonly string[];
12
+ export declare function buildPaletteLutData(paletteHex: readonly string[]): Uint8Array;
13
+ export declare function getPaletteLutTexture(kind: "crunchy16" | "crunchy64" | "fallback"): THREE.DataTexture;
14
+ export declare function getColorQuantVector(mode: RetroColorMode, target?: THREE.Vector4): THREE.Vector4;
15
+ export interface RetroTextureOptions {
16
+ pixelated?: boolean;
17
+ mipmaps?: boolean;
18
+ anisotropy?: number;
19
+ }
20
+ export declare function applyRetroTextureFiltering(texture: null, opts?: RetroTextureOptions): null;
21
+ export declare function applyRetroTextureFiltering(texture: undefined, opts?: RetroTextureOptions): undefined;
22
+ export declare function applyRetroTextureFiltering<T extends THREE.Texture>(texture: T, opts?: RetroTextureOptions): T;
23
+ export declare function applyRetroFilteringToMaterial(material: THREE.Material | null | undefined, opts?: RetroTextureOptions): void;
24
+ export declare function computeRetroDpr(renderScale: number, isSoftGl?: boolean, devicePixelRatio?: number): number;
@@ -0,0 +1,69 @@
1
+ import * as THREE from "three";
2
+ import { applyRetroFilteringToMaterial, applyRetroTextureFiltering, buildPaletteLutData, computeRetroDpr, getColorQuantVector, getPaletteLutTexture, PALETTE_CRUNCHY_16, PALETTE_CRUNCHY_64, RETRO_COLOR_MODES, type RetroColorMode, type RetroColorModeSpec, type RetroTextureOptions } from "./retroPalettes.js";
3
+ export { applyRetroFilteringToMaterial, applyRetroTextureFiltering, buildPaletteLutData, computeRetroDpr, getColorQuantVector, getPaletteLutTexture, PALETTE_CRUNCHY_16, PALETTE_CRUNCHY_64, RETRO_COLOR_MODES, type RetroColorMode, type RetroColorModeSpec, type RetroTextureOptions, };
4
+ export declare const PS1_SNAP_RESOLUTION: THREE.Vector2;
5
+ export declare const RETRO_UNIFORMS: {
6
+ uPs1Grid: {
7
+ value: THREE.Vector2;
8
+ };
9
+ uDitherMix: {
10
+ value: number;
11
+ };
12
+ uSnapStrength: {
13
+ value: number;
14
+ };
15
+ uDitherScale: {
16
+ value: number;
17
+ };
18
+ uColorQuant: {
19
+ value: THREE.Vector4;
20
+ };
21
+ uPaletteLut: {
22
+ value: THREE.DataTexture;
23
+ };
24
+ };
25
+ export declare function getRetroShaderUniforms(): {
26
+ uPs1Grid: {
27
+ value: THREE.Vector2;
28
+ };
29
+ uDitherMix: {
30
+ value: number;
31
+ };
32
+ uSnapStrength: {
33
+ value: number;
34
+ };
35
+ uDitherScale: {
36
+ value: number;
37
+ };
38
+ uColorQuant: {
39
+ value: THREE.Vector4;
40
+ };
41
+ uPaletteLut: {
42
+ value: THREE.DataTexture;
43
+ };
44
+ };
45
+ export type RetroPresetId = "dreamcast" | "ps2-shinobi" | "dsi-crisp" | "psx-chonk" | "clean-hd";
46
+ export interface RetroPreset {
47
+ id: RetroPresetId;
48
+ label: string;
49
+ renderScale: number;
50
+ ditherAmount: number;
51
+ pixelSnapAmount: number;
52
+ colorMode: RetroColorMode;
53
+ ditherScale: number;
54
+ }
55
+ export declare const RETRO_PRESETS: readonly RetroPreset[];
56
+ export declare function getRetroPreset(id: RetroPresetId): RetroPreset;
57
+ export declare function syncRetroUniforms(presetId: RetroPresetId): RetroPreset;
58
+ export declare function syncRetroUniforms(ditherAmount: number, pixelSnapAmount?: number, renderScale?: number, colorMode?: RetroColorMode, ditherScale?: number): void;
59
+ export declare function syncRetroViewport(fbW: number, fbH: number, effectiveDpr: number): void;
60
+ export declare const GLSL_BAYER_RGB555 = "\nvec3 ps1SrgbToLinear(vec3 s) { vec3 a = clamp(s, 0.0, 1.0); return a * (a * (a * 0.305306011 + 0.682171111) + 0.012522878); }\nvec3 ps1LinearToSrgb(vec3 l) { return max(1.055 * pow(clamp(l, 0.0, 1.0), vec3(0.416666667)) - 0.055, vec3(0.0)); }\nfloat ps1Bayer2(vec2 c) { return (c.y < 0.5) ? (c.x < 0.5 ? 0.0 : 2.0) : (c.x < 0.5 ? 3.0 : 1.0); }\nfloat ps1Bayer4x4(vec2 p) { vec2 f = floor(p); return (ps1Bayer2(mod(f, 2.0)) * 4.0 + ps1Bayer2(mod(floor(f * 0.5), 2.0)) + 0.5) / 16.0; }\nfloat ps1Bayer8x8(vec2 p) { vec2 f = floor(p); return (ps1Bayer2(mod(f, 2.0)) * 16.0 + ps1Bayer2(mod(floor(f * 0.5), 2.0)) * 4.0 + ps1Bayer2(mod(floor(f * 0.25), 2.0)) + 0.5) / 64.0; }\nvec3 ps1QuantizeRGB555Mix(vec3 col, vec2 fragCoord, float mixAmt) {\n if (mixAmt <= 0.001) return col;\n vec3 srgb = clamp(col, 0.0, 1.0); float bayer = ps1Bayer4x4(fragCoord * 0.5);\n vec3 c0 = floor(srgb * 31.0) / 31.0, c1 = min(c0 + 1.0 / 31.0, vec3(1.0));\n vec3 l0 = ps1SrgbToLinear(c0), l1 = ps1SrgbToLinear(c1);\n vec3 t = clamp((ps1SrgbToLinear(srgb) - l0) / max(l1 - l0, vec3(1e-5)), 0.0, 1.0);\n return mix(c0, c1, step(vec3(mix(0.5, bayer, clamp(mixAmt, 0.0, 1.0))), t));\n}\nvec3 ps1QuantizeRGB555(vec3 col, vec2 fragCoord) { return ps1QuantizeRGB555Mix(col, fragCoord, 1.0); }\n";
61
+ export declare const GLSL_RETRO_QUANTIZE = "\nuniform float uDitherScale; uniform vec4 uColorQuant; uniform sampler2D uPaletteLut;\n\nvec3 ps1SrgbToLinear(vec3 s) { vec3 a = clamp(s, 0.0, 1.0); return a * (a * (a * 0.305306011 + 0.682171111) + 0.012522878); }\nvec3 ps1LinearToSrgb(vec3 l) { return max(1.055 * pow(clamp(l, 0.0, 1.0), vec3(0.416666667)) - 0.055, vec3(0.0)); }\nfloat ps1Bayer2(vec2 c) { return (c.y < 0.5) ? (c.x < 0.5 ? 0.0 : 2.0) : (c.x < 0.5 ? 3.0 : 1.0); }\nfloat ps1Bayer4x4(vec2 p) { vec2 f = floor(p); return (ps1Bayer2(mod(f, 2.0)) * 4.0 + ps1Bayer2(mod(floor(f * 0.5), 2.0)) + 0.5) / 16.0; }\nfloat ps1Bayer8x8(vec2 p) { vec2 f = floor(p); return (ps1Bayer2(mod(f, 2.0)) * 16.0 + ps1Bayer2(mod(floor(f * 0.5), 2.0)) * 4.0 + ps1Bayer2(mod(floor(f * 0.25), 2.0)) + 0.5) / 64.0; }\nvec3 ps1QuantizeRGB555Mix(vec3 col, vec2 fragCoord, float mixAmt) {\n if (mixAmt <= 0.001) return col;\n vec3 srgb = clamp(col, 0.0, 1.0); float bayer = ps1Bayer4x4(fragCoord * 0.5);\n vec3 c0 = floor(srgb * 31.0) / 31.0, c1 = min(c0 + 1.0 / 31.0, vec3(1.0));\n vec3 l0 = ps1SrgbToLinear(c0), l1 = ps1SrgbToLinear(c1);\n vec3 t = clamp((ps1SrgbToLinear(srgb) - l0) / max(l1 - l0, vec3(1e-5)), 0.0, 1.0);\n return mix(c0, c1, step(vec3(mix(0.5, bayer, clamp(mixAmt, 0.0, 1.0))), t));\n}\nvec3 ps1QuantizeRGB555(vec3 col, vec2 fragCoord) { return ps1QuantizeRGB555Mix(col, fragCoord, 1.0); }\n\nfloat ps1BayerDither(vec2 fragCoord) { return ps1Bayer4x4(fragCoord / max(uDitherScale, 0.5)); }\nvec3 ps1SamplePaletteLut(vec3 srgb) {\n vec3 c = clamp(srgb, 0.0, 1.0);\n return texture2D(uPaletteLut, vec2((floor(c.b * 31.0 + 0.5) * 32.0 + floor(c.r * 31.0 + 0.5) + 0.5) / 1024.0, (floor(c.g * 31.0 + 0.5) + 0.5) / 32.0)).rgb;\n}\nvec3 ps1QuantizeRetro(vec3 col, vec2 fragCoord, float ditherSpread) {\n if (uColorQuant.w < 0.5) return col;\n vec3 srgb = clamp(col, 0.0, 1.0); float bayer = ps1Bayer8x8(fragCoord / max(uDitherScale, 0.5)), spread = clamp(ditherSpread, 0.0, 1.0);\n if (uColorQuant.w > 1.5) return ps1SamplePaletteLut(ps1LinearToSrgb(clamp(ps1SrgbToLinear(srgb) + (bayer - 0.5) * (uColorQuant.y * spread), 0.0, 1.0)));\n vec3 levels = max(uColorQuant.rgb, vec3(1.0)), c0 = floor(srgb * levels) / levels, c1 = min(c0 + 1.0 / levels, vec3(1.0));\n vec3 l0 = ps1SrgbToLinear(c0), l1 = ps1SrgbToLinear(c1);\n vec3 t = clamp((ps1SrgbToLinear(srgb) - l0) / max(l1 - l0, vec3(1e-5)), 0.0, 1.0);\n return mix(c0, c1, step(vec3(mix(0.5, bayer, spread)), t));\n}\n";
62
+ export interface RetroMaterialOptions {
63
+ flatShading?: boolean;
64
+ snap?: number;
65
+ dither?: number;
66
+ }
67
+ export declare function applyRetroMaterial<T extends THREE.Material>(material: T, options?: RetroMaterialOptions): T;
68
+ export declare const applyPs1Material: typeof applyRetroMaterial;
69
+ export declare function applySceneRetroMaterials(root: THREE.Object3D, options?: RetroMaterialOptions): void;