@galacean/engine-core 1.5.0-alpha.0 → 1.5.0-alpha.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-core",
3
- "version": "1.5.0-alpha.0",
3
+ "version": "1.5.0-alpha.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -18,10 +18,10 @@
18
18
  "types/**/*"
19
19
  ],
20
20
  "dependencies": {
21
- "@galacean/engine-math": "1.5.0-alpha.0"
21
+ "@galacean/engine-math": "1.5.0-alpha.1"
22
22
  },
23
23
  "devDependencies": {
24
- "@galacean/engine-design": "1.5.0-alpha.0"
24
+ "@galacean/engine-design": "1.5.0-alpha.1"
25
25
  },
26
26
  "scripts": {
27
27
  "b:types": "tsc"
package/types/Camera.d.ts CHANGED
@@ -53,13 +53,16 @@ export declare class Camera extends Component {
53
53
  */
54
54
  opaqueTextureDownsampling: Downsampling;
55
55
  /**
56
- * Multi-sample anti-aliasing samples when use independent canvas mode.
56
+ * The number of samples used for hardware multisample anti-aliasing (MSAA) to smooth geometry edges during rasterization.
57
+ * Higher sample counts (e.g., 2x, 4x, 8x) produce smoother edges.
57
58
  *
58
- * @remarks It will take effect when `independentCanvasEnabled` property is `true`, otherwise it will be invalid.
59
+ * @defaultValue `MSAASamples.FourX`
59
60
  */
60
61
  msaaSamples: MSAASamples;
61
62
  /**
62
- * Anti-aliasing mode.
63
+ * The screen-space anti-aliasing mode applied after the camera renders the final image.
64
+ * Unlike MSAA, it can smooth all pixels, including by shader-generated specular, alpha-cutoff edge, low resolution texture.
65
+ *
63
66
  * @defaultValue `AntiAliasing.None`
64
67
  */
65
68
  antiAliasing: AntiAliasing;
@@ -90,15 +93,9 @@ export declare class Camera extends Component {
90
93
  * If enabled, the opaque texture can be accessed in the shader using `camera_OpaqueTexture`.
91
94
  *
92
95
  * @defaultValue `false`
93
- * @remarks If enabled, the `independentCanvasEnabled` property will be forced to be true.
94
96
  */
95
97
  get opaqueTextureEnabled(): boolean;
96
98
  set opaqueTextureEnabled(value: boolean);
97
- /**
98
- * Whether independent canvas is enabled.
99
- * @remarks If true, the msaa in viewport can turn or off independently by `msaaSamples` property.
100
- */
101
- get independentCanvasEnabled(): boolean;
102
99
  /**
103
100
  * Shader data.
104
101
  */
@@ -165,14 +162,12 @@ export declare class Camera extends Component {
165
162
  /**
166
163
  * Whether to enable HDR.
167
164
  * @defaultValue `false`
168
- * @remarks If enabled, the `independentCanvasEnabled` property will be forced to be true.
169
165
  */
170
166
  get enableHDR(): boolean;
171
167
  set enableHDR(value: boolean);
172
168
  /**
173
169
  * Whether to enable post process.
174
170
  * @defaultValue `false`
175
- * @remarks If enabled, the `independentCanvasEnabled` property will be forced to be true.
176
171
  */
177
172
  get enablePostProcess(): boolean;
178
173
  set enablePostProcess(value: boolean);
@@ -308,6 +303,5 @@ export declare class Camera extends Component {
308
303
  */
309
304
  private _getInverseProjectionMatrix;
310
305
  private _onPixelViewportChanged;
311
- private _checkMainCanvasAntialiasWaste;
312
306
  private _dispatchModify;
313
307
  }