You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/classes/Image.xml
+20-20Lines changed: 20 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -249,35 +249,35 @@
249
249
Returns the number of mipmap levels or 0 if the image has no mipmaps. The largest main level image is not counted as a mipmap level by this method, so if you want to include it you can add 1 to this count.
Ensures that the size of the [Image] is smaller then or equals to the size specified at [member ProjectSettings.rendering/textures/performance/max_size].
Reduces the size of [Image] logarithmically according to the equation [code]size = max(floor(original_size / pow(2, downscale_factor)), Vector2i.ONE)[/code], getting downscale_factor from [member ProjectSettings.rendering/textures/performance/downscale_factor].
677
677
</constant>
678
678
<constantname="FORMAT_L8"value="0"enum="Format">
679
679
Texture format with a single 8-bit depth representing luminance.
The default [member Image.PerformanceMode] of imported [Texture2D]'s. In the [b]Original Resolution[/b], the [Texture2D] resolution is unaffected.
3355
-
[b]Max Resolution[/b] will ensure the [Texture2D]'s width and height are below [member rendering/textures/performance/max_resolution]. The equation is [code]size = min(max_resolution, original_size)[/code].
3356
-
[b]Downscale Resolution[/b] will half the [Texture2D]'s width and height [member rendering/textures/performance/downscale_factor] times. The equation is [code]code = floor(original_size / pow(2, downscale_factor))[/code].
3354
+
Changes the [enum Image.PerformanceMode] used by [Texture2D] when loaded into a scene. [b]Original Size[/b] keeps the [Texture2D] original size. [b]Max Size[/b] ensures that the size of [Texture2D] is smaller then the size at [member rendering/textures/performance/max_size]. [b]Downscale Factor[/b] reduces the size logarithmically according to the equation [code]size = max(floor(original_size / pow(2, downscale_factor)), Vector2i.ONE)[/code], getting downscale_factor from [member rendering/textures/performance/downscale_factor].
If the performance mode is set to [code]Downscale Factor[/code], then this will be used to determin how many times each [Texture2D]'s width and height get's halved.
3357
+
Determines how much a [Texture2D][Image] size will be reduces when the [enum Image.PerformanceMode] is set to [constant Image.PERFORMANCE_MODE_DOWNSCALE_SIZE].
If [code]true[/code], the GPU texture compressor will cache the local RenderingDevice and its resources (shaders and pipelines), allowing for faster subsequent imports at a memory cost.
If [code]true[/code], then the imported image will always be at full resolution and will not be scaled down according to the active [member Image.PerformanceMode].
78
-
[b]Node:[/b] This does nothing if the [member Image.PerformanceMode] is set to [code]Original Resolution[/code] in the [ProjectSettings].
If [code]true[/code], then the engine will ignore [member ProjectSettings.rendering/textures/performance/default_mode] and will always load the image at full size.
0 commit comments