vim-web 0.3.44-dev.55 → 0.3.44-dev.56
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './vimSettings';
|
|
2
2
|
export { requestVim as request, type RequestSource, type VimRequest } from './progressive/vimRequest';
|
|
3
|
+
export * as Materials from './materials';
|
|
3
4
|
export type { Transparency } from './geometry';
|
|
4
5
|
export type * from './webglAttribute';
|
|
5
6
|
export type * from './colorAttribute';
|
package/dist/vim-web.iife.js
CHANGED
|
@@ -49999,6 +49999,47 @@ void main() {
|
|
|
49999
49999
|
this.end();
|
|
50000
50000
|
}
|
|
50001
50001
|
}
|
|
50002
|
+
function createTransferMaterial() {
|
|
50003
|
+
return new ShaderMaterial({
|
|
50004
|
+
uniforms: {
|
|
50005
|
+
source: { value: null }
|
|
50006
|
+
},
|
|
50007
|
+
vertexShader: `
|
|
50008
|
+
varying vec2 vUv;
|
|
50009
|
+
void main() {
|
|
50010
|
+
vUv = uv;
|
|
50011
|
+
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
50012
|
+
}
|
|
50013
|
+
`,
|
|
50014
|
+
fragmentShader: `
|
|
50015
|
+
uniform sampler2D source;
|
|
50016
|
+
varying vec2 vUv;
|
|
50017
|
+
|
|
50018
|
+
void main() {
|
|
50019
|
+
gl_FragColor = texture2D(source, vUv);
|
|
50020
|
+
}
|
|
50021
|
+
`
|
|
50022
|
+
});
|
|
50023
|
+
}
|
|
50024
|
+
const index$9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
50025
|
+
__proto__: null,
|
|
50026
|
+
Materials,
|
|
50027
|
+
MergeMaterial,
|
|
50028
|
+
OutlineMaterial,
|
|
50029
|
+
SkyboxMaterial,
|
|
50030
|
+
StandardMaterial,
|
|
50031
|
+
createBasicOpaque,
|
|
50032
|
+
createBasicTransparent,
|
|
50033
|
+
createGhostMaterial,
|
|
50034
|
+
createMaskMaterial,
|
|
50035
|
+
createMergeMaterial,
|
|
50036
|
+
createOpaque,
|
|
50037
|
+
createOutlineMaterial,
|
|
50038
|
+
createSimpleMaterial,
|
|
50039
|
+
createTransferMaterial,
|
|
50040
|
+
createTransparent,
|
|
50041
|
+
createWireframe
|
|
50042
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
50002
50043
|
const _Marker = class _Marker {
|
|
50003
50044
|
/**
|
|
50004
50045
|
* Constructs a new Marker object.
|
|
@@ -56380,28 +56421,6 @@ void main() {
|
|
|
56380
56421
|
}
|
|
56381
56422
|
}
|
|
56382
56423
|
}
|
|
56383
|
-
function createTransferMaterial() {
|
|
56384
|
-
return new ShaderMaterial({
|
|
56385
|
-
uniforms: {
|
|
56386
|
-
source: { value: null }
|
|
56387
|
-
},
|
|
56388
|
-
vertexShader: `
|
|
56389
|
-
varying vec2 vUv;
|
|
56390
|
-
void main() {
|
|
56391
|
-
vUv = uv;
|
|
56392
|
-
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
56393
|
-
}
|
|
56394
|
-
`,
|
|
56395
|
-
fragmentShader: `
|
|
56396
|
-
uniform sampler2D source;
|
|
56397
|
-
varying vec2 vUv;
|
|
56398
|
-
|
|
56399
|
-
void main() {
|
|
56400
|
-
gl_FragColor = texture2D(source, vUv);
|
|
56401
|
-
}
|
|
56402
|
-
`
|
|
56403
|
-
});
|
|
56404
|
-
}
|
|
56405
56424
|
class TransferPass extends Pass {
|
|
56406
56425
|
constructor(sceneTexture) {
|
|
56407
56426
|
super();
|
|
@@ -57170,6 +57189,7 @@ void main() {
|
|
|
57170
57189
|
__proto__: null,
|
|
57171
57190
|
IProgressLogs: distExports$2.IProgressLogs,
|
|
57172
57191
|
Layers,
|
|
57192
|
+
Materials: index$9,
|
|
57173
57193
|
Viewer: Viewer$3,
|
|
57174
57194
|
createViewerSettings,
|
|
57175
57195
|
createViewerSettingsFromUrl,
|