@@ -11,10 +11,9 @@ import { CameraFrameOptions, RenderPassCameraFrame } from './render-pass-camera-
1111 */
1212
1313/**
14+ * @typedef {Object } Rendering
1415 * Properties related to scene rendering, encompassing settings that control the rendering resolution,
1516 * pixel format, multi-sampling for anti-aliasing, tone-mapping and similar.
16- *
17- * @typedef {Object } Rendering
1817 * @property {number[] } renderFormats - The preferred render formats of the frame buffer, in order of
1918 * preference. First format from this list that is supported by the hardware is used. When none of
2019 * the formats are supported, {@link PIXELFORMAT_RGBA8} is used, but this automatically disables
@@ -52,12 +51,11 @@ import { CameraFrameOptions, RenderPassCameraFrame } from './render-pass-camera-
5251 */
5352
5453/**
54+ * @typedef {Object } Ssao
5555 * Properties related to the Screen Space Ambient Occlusion (SSAO) effect, a postprocessing technique
5656 * that approximates ambient occlusion by calculating how exposed each point in the screen space is
5757 * to ambient light, enhancing depth perception and adding subtle shadowing in crevices and between
5858 * objects.
59- *
60- * @typedef {Object } Ssao
6159 * @property {string } type - The type of the SSAO determines how it is applied in the rendering
6260 * process. Defaults to {@link SSAOTYPE_NONE}. Can be:
6361 *
@@ -77,11 +75,10 @@ import { CameraFrameOptions, RenderPassCameraFrame } from './render-pass-camera-
7775 */
7876
7977/**
78+ * @typedef {Object } Bloom
8079 * Properties related to the HDR bloom effect, a postprocessing technique that simulates the natural
8180 * glow of bright light sources by spreading their intensity beyond their boundaries, creating a soft
8281 * and realistic blooming effect.
83- *
84- * @typedef {Object } Bloom
8582 * @property {number } intensity - The intensity of the bloom effect, 0-0.1 range. Defaults to 0,
8683 * making it disabled.
8784 * @property {number } blurLevel - The number of iterations for blurring the bloom effect, with each
@@ -90,11 +87,10 @@ import { CameraFrameOptions, RenderPassCameraFrame } from './render-pass-camera-
9087 */
9188
9289/**
90+ * @typedef {Object } Grading
9391 * Properties related to the color grading effect, a postprocessing technique used to adjust and the
9492 * visual tone of an image. This effect modifies brightness, contrast, saturation, and overall color
9593 * balance to achieve a specific aesthetic or mood.
96- *
97- * @typedef {Object } Grading
9894 * @property {boolean } enabled - Whether grading is enabled. Defaults to false.
9995 * @property {number } brightness - The brightness of the grading effect, 0-3 range. Defaults to 1.
10096 * @property {number } contrast - The contrast of the grading effect, 0.5-1.5 range. Defaults to 1.
@@ -103,12 +99,11 @@ import { CameraFrameOptions, RenderPassCameraFrame } from './render-pass-camera-
10399 */
104100
105101/**
102+ * @typedef {Object } Vignette
106103 * Properties related to the vignette effect, a postprocessing technique that darkens the image
107104 * edges, creating a gradual falloff in brightness from the center outward. The effect can be also
108105 * reversed, making the center of the image darker than the edges, by specifying the outer distance
109106 * smaller than the inner distance.
110- *
111- * @typedef {Object } Vignette
112107 * @property {number } intensity - The intensity of the vignette effect, 0-1 range. Defaults to 0,
113108 * making it disabled.
114109 * @property {number } inner - The inner distance of the vignette effect measured from the center of
@@ -126,19 +121,17 @@ import { CameraFrameOptions, RenderPassCameraFrame } from './render-pass-camera-
126121 */
127122
128123/**
124+ * @typedef {Object } Fringing
129125 * Properties related to the fringing effect, a chromatic aberration phenomenon where the red, green,
130126 * and blue color channels diverge increasingly with greater distance from the center of the screen.
131- *
132- * @typedef {Object } Fringing
133127 * @property {number } intensity - The intensity of the fringing effect, 0-100 range. Defaults to 0,
134128 * making it disabled.
135129 */
136130
137131/**
132+ * @typedef {Object } Taa
138133 * Properties related to temporal anti-aliasing (TAA), which is a technique used to reduce aliasing
139134 * in the rendered image by blending multiple frames together over time.
140- *
141- * @typedef {Object } Taa
142135 * @property {boolean } enabled - Whether TAA is enabled. Defaults to false.
143136 * @property {number } jitter - The intensity of the camera jitter, 0-1 range. The larger the value,
144137 * the more jitter is applied to the camera, making the anti-aliasing effect more pronounced. This
@@ -147,11 +140,10 @@ import { CameraFrameOptions, RenderPassCameraFrame } from './render-pass-camera-
147140 */
148141
149142/**
143+ * @typedef {Object } Dof
150144 * Properties related to Depth of Field (DOF), a technique used to simulate the optical effect where
151145 * objects at certain distances appear sharp while others are blurred, enhancing the perception of
152146 * focus and depth in the rendered scene.
153- *
154- * @typedef {Object } Dof
155147 * @property {boolean } enabled - Whether DoF is enabled. Defaults to false.
156148 * @property {boolean } nearBlur - Whether the near blur is enabled. Defaults to false.
157149 * @property {number } focusDistance - The distance at which the focus is set. Defaults to 100.
0 commit comments