@certe/atmos-renderer 0.2.0 → 0.3.0
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.
- package/package.json +5 -9
- package/src/index.ts +0 -87
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@certe/atmos-renderer",
|
|
3
3
|
"description": "WebGPU PBR renderer for the Atmos Engine — lights, shadows, skinning, post-processing",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/certesolutions-cyber/atmos.git",
|
|
@@ -19,12 +19,8 @@
|
|
|
19
19
|
"atmos"
|
|
20
20
|
],
|
|
21
21
|
"type": "module",
|
|
22
|
-
"main": "
|
|
23
|
-
"types": "
|
|
24
|
-
"publishConfig": {
|
|
25
|
-
"main": "dist/index.js",
|
|
26
|
-
"types": "dist/index.d.ts"
|
|
27
|
-
},
|
|
22
|
+
"main": "dist/index.js",
|
|
23
|
+
"types": "dist/index.d.ts",
|
|
28
24
|
"files": [
|
|
29
25
|
"dist",
|
|
30
26
|
"!dist/__tests__",
|
|
@@ -33,8 +29,8 @@
|
|
|
33
29
|
"LICENCE"
|
|
34
30
|
],
|
|
35
31
|
"dependencies": {
|
|
36
|
-
"@certe/atmos-core": "^0.
|
|
37
|
-
"@certe/atmos-math": "^0.
|
|
32
|
+
"@certe/atmos-core": "^0.3.0",
|
|
33
|
+
"@certe/atmos-math": "^0.3.0"
|
|
38
34
|
},
|
|
39
35
|
"scripts": {
|
|
40
36
|
"test": "vitest run"
|
package/src/index.ts
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
export { initWebGPU, resizeGPU } from './webgpu-device.js';
|
|
2
|
-
export type { GPUContext } from './webgpu-device.js';
|
|
3
|
-
export { VERTEX_SHADER, FRAGMENT_SHADER } from './shader.js';
|
|
4
|
-
export { createRenderPipeline, HDR_FORMAT, MSAA_SAMPLE_COUNT } from './pipeline.js';
|
|
5
|
-
export type { PipelineResources } from './pipeline.js';
|
|
6
|
-
export { createMesh } from './mesh.js';
|
|
7
|
-
export type { Mesh } from './mesh.js';
|
|
8
|
-
export {
|
|
9
|
-
createCubeGeometry,
|
|
10
|
-
createPlaneGeometry,
|
|
11
|
-
createSphereGeometry,
|
|
12
|
-
createCylinderGeometry,
|
|
13
|
-
VERTEX_STRIDE_FLOATS,
|
|
14
|
-
VERTEX_STRIDE_BYTES,
|
|
15
|
-
} from './geometry.js';
|
|
16
|
-
export type { GeometryData } from './geometry.js';
|
|
17
|
-
export { createMaterial, writeMaterialUniforms, MATERIAL_UNIFORM_SIZE } from './material.js';
|
|
18
|
-
export type { Material, MaterialParams } from './material.js';
|
|
19
|
-
export { createDirectionalLight, writeSceneUniforms, SCENE_UNIFORM_SIZE, collectSceneLights } from './light.js';
|
|
20
|
-
export type { LightSettings, SceneLightData, FogSettings } from './light.js';
|
|
21
|
-
export { DirectionalLight } from './directional-light.js';
|
|
22
|
-
export { PointLight } from './point-light.js';
|
|
23
|
-
export { SpotLight } from './spot-light.js';
|
|
24
|
-
export { MeshRenderer } from './mesh-renderer.js';
|
|
25
|
-
export type { MeshRendererContext } from './mesh-renderer.js';
|
|
26
|
-
export { Camera } from './camera.js';
|
|
27
|
-
export type { ScreenToWorldProvider } from './camera.js';
|
|
28
|
-
export { SceneDepthPass } from './scene-depth.js';
|
|
29
|
-
export { RenderSystem, createDefaultCamera } from './render-system.js';
|
|
30
|
-
export type { CameraSettings, OverlayCallback } from './render-system.js';
|
|
31
|
-
export { registerRendererBuiltins } from './register-builtins.js';
|
|
32
|
-
export {
|
|
33
|
-
createDefaultMaterialAsset,
|
|
34
|
-
serializeMaterialAsset,
|
|
35
|
-
deserializeMaterialAsset,
|
|
36
|
-
} from './material-asset.js';
|
|
37
|
-
export type { ShaderType, MaterialAssetData } from './material-asset.js';
|
|
38
|
-
export { computeBoundingSphere } from './bounds.js';
|
|
39
|
-
export type { BoundingSphere } from './bounds.js';
|
|
40
|
-
export { createUnlitPipeline } from './unlit-pipeline.js';
|
|
41
|
-
export type { UnlitPipelineResources, UnlitPipelineOptions } from './unlit-pipeline.js';
|
|
42
|
-
export { GridRenderer } from './grid-renderer.js';
|
|
43
|
-
export {
|
|
44
|
-
createTextureFromRGBA,
|
|
45
|
-
decodeImageToRGBA,
|
|
46
|
-
getWhiteFallbackTexture,
|
|
47
|
-
getFlatNormalFallback,
|
|
48
|
-
getDefaultMetallicRoughnessFallback,
|
|
49
|
-
} from './texture.js';
|
|
50
|
-
export type { GPUTextureHandle } from './texture.js';
|
|
51
|
-
export { extractFrustumPlanes, isSphereInFrustum } from './frustum.js';
|
|
52
|
-
export type { FrustumPlanes } from './frustum.js';
|
|
53
|
-
export { DirectionalShadowPass, DirectionalShadowPassPair } from './shadow-pass.js';
|
|
54
|
-
export { PointShadowPass } from './point-shadow-pass.js';
|
|
55
|
-
export { SpotShadowPass } from './spot-shadow-pass.js';
|
|
56
|
-
export {
|
|
57
|
-
SHADOW_UNIFORM_SIZE,
|
|
58
|
-
MAX_DIR_SHADOW_SLOTS,
|
|
59
|
-
MAX_POINT_SHADOW_SLOTS,
|
|
60
|
-
MAX_SPOT_SHADOW_SLOTS,
|
|
61
|
-
SHADOW_SLOT_NONE,
|
|
62
|
-
createShadowBindGroupLayout,
|
|
63
|
-
} from './shadow-uniforms.js';
|
|
64
|
-
export { ShadowManager } from './shadow-manager.js';
|
|
65
|
-
export type { ShadowManagerResult } from './shadow-manager.js';
|
|
66
|
-
export { SHADOW_FRAGMENT_WGSL } from './shadow-fragment-wgsl.js';
|
|
67
|
-
export { SHADOW_VERTEX_SHADER } from './shadow-shader.js';
|
|
68
|
-
export { POINT_SHADOW_SHADER } from './point-shadow-shader.js';
|
|
69
|
-
export { generateMipmaps } from './mipmap-generator.js';
|
|
70
|
-
export { BloomPass } from './bloom-pass.js';
|
|
71
|
-
export { TonemapPass } from './tonemap-pass.js';
|
|
72
|
-
export { DepthPrepass } from './depth-prepass.js';
|
|
73
|
-
export { SSAOPass } from './ssao-pass.js';
|
|
74
|
-
export { drawFullscreenTriangle, FULLSCREEN_VERTEX_SHADER } from './fullscreen-quad.js';
|
|
75
|
-
export { createWireframePipeline } from './wireframe-pipeline.js';
|
|
76
|
-
export type { WireframePipelineResources } from './wireframe-pipeline.js';
|
|
77
|
-
export { SKINNED_VERTEX_STRIDE_FLOATS, SKINNED_VERTEX_STRIDE_BYTES, SKINNED_VERTEX_BUFFER_LAYOUT } from './skinned-geometry.js';
|
|
78
|
-
export { SKINNED_VERTEX_SHADER } from './skinned-shader.js';
|
|
79
|
-
export { SKINNED_SHADOW_VERTEX_SHADER } from './skinned-shadow-shader.js';
|
|
80
|
-
export { createSkinnedPBRPipeline } from './skinned-pipeline.js';
|
|
81
|
-
export type { SkinnedPipelineResources } from './skinned-pipeline.js';
|
|
82
|
-
export { SkinnedMeshRenderer } from './skinned-mesh-renderer.js';
|
|
83
|
-
export type { SkinnedRendererContext } from './skinned-mesh-renderer.js';
|
|
84
|
-
export { createTerrainPipeline, TERRAIN_VERTEX_STRIDE_FLOATS, TERRAIN_VERTEX_STRIDE_BYTES } from './terrain-pipeline.js';
|
|
85
|
-
export type { TerrainPipelineResources } from './terrain-pipeline.js';
|
|
86
|
-
export { TerrainMeshRenderer } from './terrain-mesh-renderer.js';
|
|
87
|
-
export { TERRAIN_VERTEX_SHADER, TERRAIN_FRAGMENT_SHADER } from './terrain-shader.js';
|