@@ -11,10 +11,9 @@ import { CameraFrameOptions, RenderPassCameraFrame } from './render-pass-camera-
11
11
*/
12
12
13
13
/**
14
+ * @typedef {Object } Rendering
14
15
* Properties related to scene rendering, encompassing settings that control the rendering resolution,
15
16
* pixel format, multi-sampling for anti-aliasing, tone-mapping and similar.
16
- *
17
- * @typedef {Object } Rendering
18
17
* @property {number[] } renderFormats - The preferred render formats of the frame buffer, in order of
19
18
* preference. First format from this list that is supported by the hardware is used. When none of
20
19
* the formats are supported, {@link PIXELFORMAT_RGBA8} is used, but this automatically disables
@@ -52,12 +51,11 @@ import { CameraFrameOptions, RenderPassCameraFrame } from './render-pass-camera-
52
51
*/
53
52
54
53
/**
54
+ * @typedef {Object } Ssao
55
55
* Properties related to the Screen Space Ambient Occlusion (SSAO) effect, a postprocessing technique
56
56
* that approximates ambient occlusion by calculating how exposed each point in the screen space is
57
57
* to ambient light, enhancing depth perception and adding subtle shadowing in crevices and between
58
58
* objects.
59
- *
60
- * @typedef {Object } Ssao
61
59
* @property {string } type - The type of the SSAO determines how it is applied in the rendering
62
60
* process. Defaults to {@link SSAOTYPE_NONE}. Can be:
63
61
*
@@ -77,11 +75,10 @@ import { CameraFrameOptions, RenderPassCameraFrame } from './render-pass-camera-
77
75
*/
78
76
79
77
/**
78
+ * @typedef {Object } Bloom
80
79
* Properties related to the HDR bloom effect, a postprocessing technique that simulates the natural
81
80
* glow of bright light sources by spreading their intensity beyond their boundaries, creating a soft
82
81
* and realistic blooming effect.
83
- *
84
- * @typedef {Object } Bloom
85
82
* @property {number } intensity - The intensity of the bloom effect, 0-0.1 range. Defaults to 0,
86
83
* making it disabled.
87
84
* @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-
90
87
*/
91
88
92
89
/**
90
+ * @typedef {Object } Grading
93
91
* Properties related to the color grading effect, a postprocessing technique used to adjust and the
94
92
* visual tone of an image. This effect modifies brightness, contrast, saturation, and overall color
95
93
* balance to achieve a specific aesthetic or mood.
96
- *
97
- * @typedef {Object } Grading
98
94
* @property {boolean } enabled - Whether grading is enabled. Defaults to false.
99
95
* @property {number } brightness - The brightness of the grading effect, 0-3 range. Defaults to 1.
100
96
* @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-
103
99
*/
104
100
105
101
/**
102
+ * @typedef {Object } Vignette
106
103
* Properties related to the vignette effect, a postprocessing technique that darkens the image
107
104
* edges, creating a gradual falloff in brightness from the center outward. The effect can be also
108
105
* reversed, making the center of the image darker than the edges, by specifying the outer distance
109
106
* smaller than the inner distance.
110
- *
111
- * @typedef {Object } Vignette
112
107
* @property {number } intensity - The intensity of the vignette effect, 0-1 range. Defaults to 0,
113
108
* making it disabled.
114
109
* @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-
126
121
*/
127
122
128
123
/**
124
+ * @typedef {Object } Fringing
129
125
* Properties related to the fringing effect, a chromatic aberration phenomenon where the red, green,
130
126
* and blue color channels diverge increasingly with greater distance from the center of the screen.
131
- *
132
- * @typedef {Object } Fringing
133
127
* @property {number } intensity - The intensity of the fringing effect, 0-100 range. Defaults to 0,
134
128
* making it disabled.
135
129
*/
136
130
137
131
/**
132
+ * @typedef {Object } Taa
138
133
* Properties related to temporal anti-aliasing (TAA), which is a technique used to reduce aliasing
139
134
* in the rendered image by blending multiple frames together over time.
140
- *
141
- * @typedef {Object } Taa
142
135
* @property {boolean } enabled - Whether TAA is enabled. Defaults to false.
143
136
* @property {number } jitter - The intensity of the camera jitter, 0-1 range. The larger the value,
144
137
* 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-
147
140
*/
148
141
149
142
/**
143
+ * @typedef {Object } Dof
150
144
* Properties related to Depth of Field (DOF), a technique used to simulate the optical effect where
151
145
* objects at certain distances appear sharp while others are blurred, enhancing the perception of
152
146
* focus and depth in the rendered scene.
153
- *
154
- * @typedef {Object } Dof
155
147
* @property {boolean } enabled - Whether DoF is enabled. Defaults to false.
156
148
* @property {boolean } nearBlur - Whether the near blur is enabled. Defaults to false.
157
149
* @property {number } focusDistance - The distance at which the focus is set. Defaults to 100.
0 commit comments