Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Starfield: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: updated from Minecraft
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 388: Line 388:
|{{code|misc/tunnel.png}} has been renamed and moved to {{code|assets/minecraft/textures/environment/end_sky.png}}.}}
|{{code|misc/tunnel.png}} has been renamed and moved to {{code|assets/minecraft/textures/environment/end_sky.png}}.}}
|{{HistoryLine||1.9|dev=15w31a|[[Minecraft:End Gateway (block)|End gateway]]s, the second block to utilize a starfield effect, have been added. Much like End portals, this effect depends on the camera position.
|{{HistoryLine||1.9|dev=15w31a|[[Minecraft:End Gateway (block)|End gateway]]s, the second block to utilize a starfield effect, have been added. Much like End portals, this effect depends on the camera position.
|The top face resembles that of the End portal, but the side faces are noticeably distorted.{{info needed|Why does this happen? Is this intentional, or an unexpected quirk of not having the starfield rendered on the XZ plane?}}}}
|The top face resembles{{verify|is it identical, or just similar?}} that of the End portal, but the side faces are noticeably distorted.{{info needed|Why does this happen? Is this intentional, or an unexpected quirk of not having the starfield rendered on the XZ plane?}} How the bottom face looks is unknown.}}
|{{HistoryLine|||dev=15w33a|End gateways now use a different starfield effect from End portals: it is fixed with respect to the camera.
|{{HistoryLine|||dev=15w33a|End gateways now use a different starfield effect from End portals: it is fixed with respect to the camera.
|The side faces of the block are no longer distorted, and you can no longer easily tell where the edges of the cube are at all.
|The side faces of the block are no longer distorted, and you can no longer easily tell where the edges of the cube are at all.
Line 394: Line 394:
|The End sky texture used by the fixed starfield is rotated, squished, and repeated. It does not move with the camera or with time.{{info needed|By how much is it rotated, and to what extent is it distorted from being a square?}}
|The End sky texture used by the fixed starfield is rotated, squished, and repeated. It does not move with the camera or with time.{{info needed|By how much is it rotated, and to what extent is it distorted from being a square?}}
|End gateways are entirely unaffected by fog.}}
|End gateways are entirely unaffected by fog.}}
|{{HistoryLine||1.10|dev=16w20a|Something unspecified has changed with respect to the rendering of End portals; they now look noticeably darker than in 1.9.4.{{info needed|What changed in this version, exactly?}}}}
|{{HistoryLine||1.10|dev=16w20a|The end portal background colour has been changed from {{color|#1A1A1A}} to {{color|#041113}}.
|The end gateway background colour has been changed from {{color|#262626}} to {{color|#06191C}}.}}
|{{HistoryLine||?|There is now a separate layer 0 in the starfield, which shares the colour value of the background, but is rendered with the portal texture rather than the sky texture.}}
|{{HistoryLine||?|There is now a separate layer 0 in the starfield, which shares the colour value of the background, but is rendered with the portal texture rather than the sky texture.}}
|{{HistoryLine||1.11|dev=16w40a|End portal blocks now use the same "fixed" starfield effect that End gateways use, though without the extra blue particles gateways have.
|{{HistoryLine||1.11|dev=16w40a|End portal blocks now use the same "fixed" starfield effect that End gateways use, though without the extra blue particles gateways have.
Line 406: Line 407:
|{{HistoryLine||1.17|dev=21w10a|Only one instance of the "sky" texture is now rendered, and it is stretched across the entire background, unlike being repeated as it previously was.{{info needed|What code change happened to result in this modified outcome?}}
|{{HistoryLine||1.17|dev=21w10a|Only one instance of the "sky" texture is now rendered, and it is stretched across the entire background, unlike being repeated as it previously was.{{info needed|What code change happened to result in this modified outcome?}}
|The foreground particles appear larger in this version than previously.}}
|The foreground particles appear larger in this version than previously.}}
|{{HistoryLine|||dev=21w11a|The foreground particles have seemingly been shrunk down to their pre-21w10a sizes. The background texture change persists.}}
|{{HistoryLine|||dev=21w11a|The foreground particles have seemingly been shrunk down to their pre-21w10a sizes.{{note|Specifically, a line in {{code|rendertype_end_portal.fsh}} was changed from (4.5-n/4) to (4.5-n/4)×2. Multiplying by 2 has effectively multiplied the size of each layer by {{frac|1|2}}. See [[#21w11a value changes]] for a comparison.}}{{verify|was this indeed a revert, or are the sizes as of this version actually different from before?}} The background texture change persists.}}
|{{HistoryLine|||dev=21w13a|The starfield is now also rendered on the bottom of End portals, rather than only the top.}}
|{{HistoryLine|||dev=21w13a|The starfield is now also rendered on the bottom of End portals, rather than only the top.}}
|{{HistoryLine||1.20.5|dev=24w09a|The starfield is now used as the background of the [[Minecraft:End Poem]] and [[Minecraft:credit sequence]].}}
|{{HistoryLine||1.20.5|dev=24w09a|The starfield is now used as the background of the [[Minecraft:End Poem]] and [[Minecraft:credit sequence]].}}
Line 524: Line 525:
| [[File:End Gateway JE5.gif|300px]]
| [[File:End Gateway JE5.gif|300px]]
| Particle size reverted
| Particle size reverted
|}
==== Data changes ====
===== 16w20a value changes =====
{| class="wikitable" style="text-align:center"
! colspan="4" | {{code|minecraft:end_portal}}
! rowspan="19" |
! colspan="4" | {{code|minecraft:end_gateway}}
|-
! rowspan="2" | Index
! rowspan="2" | Texture
! colspan="2" | Colour
! rowspan="2" | Index
! rowspan="2" | Texture
! colspan="2" | Colour
|-
! 1.9.4{{verify|source page said 16w07a, can we rule out a change from then to 1.9.4?}}
! 16w20a
! 1.9.4{{verify|source page said 16w07a, can we rule out a change from then to 1.9.4?}}
! 16w20a
|-
| 0
| {{code|end_sky.png}}
| {{abbr|{{color|#1A1A1A}}|vec3(0.100000, 0.100000, 0.100000)}}
| {{abbr|{{color|#041113}}|vec3(0.014725, 0.065600, 0.073878)}}
| 0
| {{code|end_sky.png}}
| {{abbr|{{color|#262626}}|vec3(0.150000, 0.150000, 0.150000)}}
| {{abbr|{{color|#06191C}}|vec3(0.022087, 0.098399, 0.110818)}}
|-
| 1
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#020D0C}}|vec3(0.006317, 0.050960, 0.047539)}}
| 1
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#031817}}|vec3(0.011892, 0.095924, 0.089485)}}
|-
| 2
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#040E0E}}|vec3(0.014739, 0.054234, 0.053507)}}
| 2
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#071A1A}}|vec3(0.027636, 0.101689, 0.100326)}}
|-
| 3
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#060F10}}|vec3(0.024945, 0.058866, 0.061520)}}
| 3
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#0C1C1D}}|vec3(0.046564, 0.109883, 0.114838)}}
|-
| 4
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#09100D}}|vec3(0.034947, 0.063375, 0.052333)}}
| 4
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#111E19}}|vec3(0.064901, 0.117696, 0.097189)}}
|-
| 5
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#090C11}}|vec3(0.034537, 0.047068, 0.066975)}}
| 5
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#101620}}|vec3(0.063761, 0.086895, 0.123646)}}
|-
| 6
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#0C1017}}|vec3(0.046264, 0.061088, 0.090753)}}
| 6
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#161D2A}}|vec3(0.084817, 0.111994, 0.166380)}}
|-
| 7
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#0E160D}}|vec3(0.053619, 0.084766, 0.050085)}}
| 7
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#192717}}|vec3(0.097489, 0.154120, 0.091064)}}
|-
| 8
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#0F131C}}|vec3(0.058973, 0.072858, 0.108439)}}
| 8
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#1B2132}}|vec3(0.106152, 0.131144, 0.195191)}}
|-
| 9
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#0E101B}}|vec3(0.054968, 0.061981, 0.105316)}}
| 9
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#191C30}}|vec3(0.097721, 0.110188, 0.187229)}}
|-
| 10
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#131416}}|vec3(0.076295, 0.079016, 0.084904)}}
| 10
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#222326}}|vec3(0.133516, 0.138278, 0.148582)}}
|-
| 11
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#0A2423}}|vec3(0.040837, 0.141944, 0.137545)}}
| 11
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#123E3C}}|vec3(0.070006, 0.243332, 0.235792)}}
|-
| 12
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#1E1621}}|vec3(0.118059, 0.085740, 0.128817)}}
| 12
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#322437}}|vec3(0.196766, 0.142899, 0.214696)}}
|-
| 13
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#083233}}|vec3(0.029551, 0.197086, 0.201231)}}
| 13
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#0C5052}}|vec3(0.047281, 0.315338, 0.321970)}}
|-
| 14
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#234233}}|vec3(0.136450, 0.260007, 0.201378)}}
| 14
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#34634D}}|vec3(0.204675, 0.390010, 0.302066)}}
|-
| 15
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#0F3C7F}}|vec3(0.060716, 0.236115, 0.496118)}}
| 15
| {{code|end_portal.png}}
| colspan="2" | {{abbr|{{color|#1550A9}}|vec3(0.080955, 0.314821, 0.661491)}}
|}
===== 21w10a rendering changes =====
For a 128×128 {{code|end_sky.png}} which is completely white in the center, and has a one-pixel-thick red border around the edges, we get the following results (recolored to the input texture) for a 1024×1024 window:
<gallery>
Starfield background tiling 21w08b.png|15w33a to 21w08b{{note|Not depicted: gradual movement}}
Starfield background tiling 21w10a.png|21w10a to present
</gallery>
===== 21w11a value changes =====
{| class="wikitable" style="text-align:center"
! rowspan="2" | Index
! colspan="2" | {{abbr|Scale|The scale factor applied to the sampled texture coordinates; higher values make the texture pattern appear smaller}}
|-
! 21w10a
! 21w11a
|-
| 0
| 4.25
| 8.5
|-
| 1
| 4
| 8
|-
| 2
| 3.75
| 7.5
|-
| 3
| 3.5
| 7
|-
| 4
| 3.25
| 6.5
|-
| 5
| 3
| 6
|-
| 6
| 2.75
| 5.5
|-
| 7
| 2.5
| 5
|-
| 8
| 2.25
| 4.5
|-
| 9
| 2
| 4
|-
| 10
| 1.75
| 3.5
|-
| 11
| 1.5
| 3
|-
| 12
| 1.25
| 2.5
|-
| 13
| 1
| 2
|-
| 14
| 0.75
| 1.5
|-
| {{abbr|15|Only used by end gateways}}
| 0.5
| 1
|}
|}


Line 534: Line 751:


==== Table of visual differences ====
==== Table of visual differences ====
{| class="wikitable"
{| class="wikitable" style="text-align:center"
! Host
! Host
! {{code|portal}}
! {{code|portal}}
Line 542: Line 759:
! Windows 11<br>AMD Radeon RX 7800 XT
! Windows 11<br>AMD Radeon RX 7800 XT
| colspan="2" | [[File:Starfield BE.gif|300px]]
| colspan="2" | [[File:Starfield BE.gif|300px]]
| All 16 colors are used
|-
! Kubuntu 24.04<br>AMD Radeon RX 7800 XT
| [[File:Starfield (even colors only) BE.gif|300px]]
| [[File:Starfield BE.gif|300px]]
| All 16 colors are used
| All 16 colors are used
|}
|}
Line 559: Line 781:
|{{HistoryLine||1.7.10|[[File:End Portal N3DSE.png|32px]][[File:End Gateway N3DSE.png|32px]] The starfield has been implemented alongside the end portal and end gateway blocks. It looks much different compared to other editions; the portal texture does not appear to be colored and instead remains white. How exactly it is rendered is unknown.}}
|{{HistoryLine||1.7.10|[[File:End Portal N3DSE.png|32px]][[File:End Gateway N3DSE.png|32px]] The starfield has been implemented alongside the end portal and end gateway blocks. It looks much different compared to other editions; the portal texture does not appear to be colored and instead remains white. How exactly it is rendered is unknown.}}
}}
}}
== Notes ==
{{notelist}}


== References ==
== References ==

Latest revision as of 11:20, 10 June 2026

Starfield is a unique graphical effect used for rendering certain features related to Minecraft:the End.

Use cases

Starfield effects are used for the following:

Minecraft:Falling block entities of the End portal and End gateway do not render the starfield effect, and it seems highly unlikely (although unproven) that Minecraft:moving piston blocks would either.<ref>Template:Bug</ref>

How it is rendered

Java Edition

The rendering of the starfield effect has changed several times throughout the game's history.

There are two subtly different gateway effects, referred to by the Template:Code special model type as Template:Code (used for end portal blocks, the dimension loading screens for entering and exiting the End, and the credits sequence and preceding poem) and Template:Code, used specifically for end gateways. The latter renders an extra layer of blue pixels which are absent from the former, which can be seen by placing the two blocks next to each other; blue pixels will disappear when they migrate to the space where the end portal is present. See later in this section for a technical explanation of the difference.

Two different texture files are utilised in generating the starfield effect:

Template:Code Template:Code
Template:Pximg Template:Pximg

The "End sky" texture, which is indeed the same texture used for the actual Minecraft:End sky, is used as the "background" texture: it is sampled using screen-projected coordinates and multiplied by Template:Color. The shader uses the projected screen-space y-coordinate directly as the vertical texture coordinate; because the screen-projected vertical coordinate increases upwards while the texture image is displayed with its vertical axis running downwards, the background texture appears vertically mirrored.Template:Info needed

The "End portal" texture is sampled in multiple layers on top of this background. Each layer uses a different colour multiplier, scale, rotation, fixed horizontal offset, and time-based vertical offset. In the fragment shader, the RGB results of the layers are combined additively before the final colour is output with full opacity. The End portal uses 15 layers of the "End portal" texture, while the End gateway uses 16 layers. The first 15 layers are shared between both effects, while the End gateway has an additional layer using Template:Color.

The colour values used by the layers are as follows. Index 0 is also used for the "End sky" background, but the velocity listed for index 0 applies only to the first layer of the "End portal" texture. The End portal uses indices 0 through 14, while the End gateway uses indices 0 through 15. The Velocity column gives the rate at which the time-based vertical offset increases. In the current Windows behaviour, this is also the apparent downward velocity of the layer. In the pre-25w07a behaviour, where the apparent travel direction follows each layer's rotation, the same listed velocity is transformed by the layer's rotation and scale.

Index Velocity Template:Abbr Template:Abbr Colour Used by
Template:Code Template:Code
0 Template:Frac 20° 8.5 Template:Abbr Template:Tc Template:Tc
1 Template:Frac 44° 8 Template:Abbr Template:Tc Template:Tc
2 Template:Frac 72° 7.5 Template:Abbr Template:Tc Template:Tc
3 Template:Frac 104° 7 Template:Abbr Template:Tc Template:Tc
4 Template:Frac 140° 6.5 Template:Abbr Template:Tc Template:Tc
5 Template:Frac 180° 6 Template:Abbr Template:Tc Template:Tc
6 Template:Frac 224° 5.5 Template:Abbr Template:Tc Template:Tc
7 Template:Frac 272° 5 Template:Abbr Template:Tc Template:Tc
8 Template:Frac 324° 4.5 Template:Abbr Template:Tc Template:Tc
9 Template:Frac 20° 4 Template:Abbr Template:Tc Template:Tc
10 Template:Frac 80° 3.5 Template:Abbr Template:Tc Template:Tc
11 Template:Frac 144° 3 Template:Abbr Template:Tc Template:Tc
12 Template:Frac 212° 2.5 Template:Abbr Template:Tc Template:Tc
13 Template:Frac 284° 2 Template:Abbr Template:Tc Template:Tc
14 Template:Frac 1.5 Template:Abbr Template:Tc Template:Tc
15 Template:Frac 80° 1 Template:Abbr Template:Tc Template:Tc

For the nth layer, where n starts at 1 and equals the table index plus 1, the horizontal offset is Template:Frac, the rotation angle is (n×n×4321+n×9)×2 degrees, and the scale is (4.5-Template:Frac)×2. The vertical offset is (2+Template:Frac)×(GameTime×1.5). Since GameTime increases by Template:Frac per game tick, the Velocity value listed in the table is Template:Frac. In unaffected rendering behaviour, the Rotation value gives the apparent travel direction, while the apparent travel velocity is the listed Velocity divided by the listed Scale.

On some AMD Windows systems, the layers appear to move vertically downwards instead of following the directions listed in the table. This behaviour is unintentional and only affects OpenGL; the Vulkan renderer does not exhibit this behaviour, nor does OpenGL on macOS, Linux, or when using Nvidia graphics hardware.<ref>Template:Bug</ref>

The starfield effect is completely constant regardless of view: while moving and rotating the camera will change the position of the object using the starfield effect itself on screen, the starfield itself will remain fixed in place. In effect, anything using the starfield effect effectively creates what can be seen as a "hole" in the world, behind which the starfield rests. The shape of the starfield also changes with the window size, although this is presumably not intentional.<ref>Template:Bug</ref>

Bedrock Edition

Template:Info needed section The starfield effect in Bedrock Edition is rendered using a layered parallax system.

For Minecraft:end portals, the effect consists of 17 overlapping horizontal quadrilateral layers with identical positions, dimensions, and depths. Each layer covers the full horizontal area of a block and consists of 2 triangles.

For Minecraft:end gateways, the effect consists of 17 overlapping layers with identical positions, dimensions, and depths. Each cube layer occupies a full block space and consists of 6 faces and 12 triangles.

In both effects, one layer forms an opaque base layer, while the remaining 16 render the pixels making up the starfield. The geometry of the 17 layers overlaps exactly within each effect; the depth and parallax of the starfield are produced by the different texture coordinates and layer parameters used by each layer.

Two different texture files are utilised in generating the effect:

Template:Code Template:Code
Template:Pximg Template:Pximg

The Template:Code texture supplies the starfield pattern, while the Template:Code texture supplies the colours used by the individual starfield layers. Both textures use nearest-neighbour filtering and wrap addressing on both texture-coordinate axes, so coordinates outside the texture range continue sampling from the opposite side.

The opaque base layer has a layer parameter of 1. In this case, the pixel shader enters the base-layer branch and generates the output colour from the current fog colour and fog factor. At positions unaffected by fog, the fog factor is 0, causing the layer to appear black; as the fog factor increases, the colour of the base layer approaches the fog colour of the scene.

The remaining 16 layers render the starfield pixels and are indexed from 0 through 15. Their layer parameters are Template:Frac, Template:Frac, and Template:Frac, decreasing by Template:Frac for each subsequent layer until Template:Frac at index 14; the layer parameter at index 15 is 0.

Each starfield layer has a fixed set of colour texture coordinates. The 16 coordinate pairs form a 4x4 grid, with both coordinates successively taking the values Template:Frac, Template:Frac, Template:Frac, and Template:Frac. With nearest-neighbour filtering, these coordinates fall within the bottom-right 2x2-pixel region of the colour texture, so four colours are used,Template:Verify each by four starfield layers.

The parameters used by the starfield layers are as follows. The Rotation column gives the exact angle in radians, reduced to the range from 0 to 2π:

Index Layer parameter Template:Abbr Template:Abbr Template:Abbr Colour texture coordinates ColourTemplate:Verify
0 Template:Frac Template:Fracπ Template:Frac Template:Frac (Template:Frac,Template:Frac) Template:Color
1 Template:Frac Template:Fracπ Template:Frac Template:Frac (Template:Frac,Template:Frac) Template:Color
2 Template:Frac Template:Fracπ Template:Frac Template:Frac (Template:Frac,Template:Frac) Template:Color
3 Template:Frac Template:Fracπ Template:Frac Template:Frac (Template:Frac,Template:Frac) Template:Color
4 Template:Frac Template:Fracπ Template:Frac Template:Frac (Template:Frac,Template:Frac) Template:Color
5 Template:Frac Template:Fracπ Template:Frac Template:Frac (Template:Frac,Template:Frac) Template:Color
6 Template:Frac Template:Fracπ Template:Frac Template:Frac (Template:Frac,Template:Frac) Template:Color
7 Template:Frac Template:Fracπ Template:Frac Template:Frac (Template:Frac,Template:Frac) Template:Color
8 Template:Frac Template:Fracπ Template:Frac Template:Frac (Template:Frac,Template:Frac) Template:Color
9 Template:Frac Template:Fracπ Template:Frac Template:Frac (Template:Frac,Template:Frac) Template:Color
10 Template:Frac Template:Fracπ Template:Frac Template:Frac (Template:Frac,Template:Frac) Template:Color
11 Template:Frac Template:Fracπ Template:Frac Template:Frac (Template:Frac,Template:Frac) Template:Color
12 Template:Frac Template:Fracπ Template:Frac Template:Frac (Template:Frac,Template:Frac) Template:Color
13 Template:Frac Template:Fracπ Template:Frac Template:Frac (Template:Frac,Template:Frac) Template:Color
14 Template:Frac Template:Fracπ Template:Frac Template:Frac (Template:Frac,Template:Frac) Template:Color
15 0 0 0 1 (Template:Frac,Template:Frac) Template:Color

For a starfield layer with a layer parameter of p, the virtual depth is 32p, the rotation angle of the texture coordinates is 32p×Template:Frac radians, and the layer brightness is 1-p.

The RGB components of the vertex colour encode the direction of the current block face, while the alpha component stores the layer parameter. The vertex shader uses the vertex position, block-face direction, viewpoint position, and virtual depth to calculate the position projected from the viewpoint onto a virtual sampling plane. The actual geometry of all 17 layers overlaps exactly, but the virtual sampling planes corresponding to the layers lie at different depths, producing multiple levels of parallax as the camera moves.

The virtual sampling position is then converted into two-dimensional coordinates according to the direction of the block face and scaled to Template:Frac of its original size. The coordinates are rotated by the rotation angle of the layer, then offset by 32p in the same direction. The time value supplied by the renderer is divided by 256 and added to the second texture coordinate, causing the starfield pattern to move continuously. All layers use the same time increment, while their different rotation angles and virtual depths produce different apparent directions of travel and degrees of parallax.

The time value supplied by the renderer increases in seconds, so the time offset increases by Template:Frac of a texture-coordinate unit per second. The parallax texture uses wrap addressing; with the camera position and other rendering parameters kept unchanged, the starfield animation returns to the same texture phase every 256 seconds.

The output colour of an ordinary starfield layer is obtained by multiplying the colour texture, parallax texture, layer brightness, and fog attenuation component-wise. If the layer parameter is p and the fog factor is f, the colour of the layer is the component-wise product of the colour texture, the parallax texture, 1-p, and 1-f.

The blend state causes the base layer to replace the existing colour in the framebuffer, after which the 16 starfield layers are added successively. Different graphics backends may use different output alpha values and destination blend factors to produce the same colour-compositing result.

The effect uses depth testing and depth writing, with the depth comparison function set to less than or equal. As all 17 layers of each effect use the same geometry and depth, each layer can pass the test at equal depth and take part in the final composition.

History

Java Edition

Template:Info needed section Template:HistoryTable

Table of visual changes

Parallax
Versions Template:Code Template:Code Changes
Beta 1.9 Prerelease 3
to
12w22a
File:Parallax Portal Starfield JE1.gif - Portal introduction
12w23a
to
1.8.9
File:Parallax Portal Starfield JE2.gif End Sky texture change
15w31a
to
15w32c
File:Parallax Gateway Starfield JE1.gif Gateway introduction
15w33a
to
1.9.4
- Gateway now camera-independent
16w20a
to
16w39c
File:Parallax Portal Starfield JE3.gif The starfield is darker and greener
Parallax starfield no longer exists from 16w40a onward
Fixed
Versions Template:Code Template:Code Changes
15w33a
to
1.9.4
- File:Fixed Gateway Starfield JE1.gif Fixed starfield added, used by end gateway
16w20a
to
16w39c
File:Fixed Gateway Starfield JE2.gif The starfield is darker and greener
16w40a
to
21w08b
File:Fixed Portal Starfield JE1.gif Portal now camera-independent
21w10a File:Fixed Portal Starfield JE2.gif File:Fixed Gateway Starfield JE3.gif Background now stretched instead of repeating, particle size increased
21w11a
to
present
File:Fixed Portal Starfield JE3.gif File:Fixed Gateway Starfield JE4.gif Particle size reverted
Blocks
Versions Template:Code Template:Code Changes
Beta 1.9 Prerelease 3
to
12w22a
File:End Portal JE2.gif Template:Tc Portal introduction
12w23a
to
1.8.9
File:End Portal JE3.gif Template:Tc End Sky texture change
15w31a
to
15w32c
File:End Gateway JE1.gif Gateway introduction
15w33a
to
1.9.4
File:End Gateway JE2.gif Gateway now camera-independent
16w20a
to
16w39c
File:End Portal JE4.gif File:End Gateway JE3.gif The starfield is darker and greener
16w40a
to
21w08b
File:End Portal JE5.gif Portal now camera-independent
21w10a File:End Portal JE6.gif File:End Gateway JE4.gif Background now stretched instead of repeating, particle size increased
21w11a
to
present
File:End Portal JE7.gif File:End Gateway JE5.gif Particle size reverted

Data changes

16w20a value changes
Template:Code Template:Code
Index Texture Colour Index Texture Colour
1.9.4Template:Verify 16w20a 1.9.4Template:Verify 16w20a
0 Template:Code Template:Abbr Template:Abbr 0 Template:Code Template:Abbr Template:Abbr
1 Template:Code Template:Abbr 1 Template:Code Template:Abbr
2 Template:Code Template:Abbr 2 Template:Code Template:Abbr
3 Template:Code Template:Abbr 3 Template:Code Template:Abbr
4 Template:Code Template:Abbr 4 Template:Code Template:Abbr
5 Template:Code Template:Abbr 5 Template:Code Template:Abbr
6 Template:Code Template:Abbr 6 Template:Code Template:Abbr
7 Template:Code Template:Abbr 7 Template:Code Template:Abbr
8 Template:Code Template:Abbr 8 Template:Code Template:Abbr
9 Template:Code Template:Abbr 9 Template:Code Template:Abbr
10 Template:Code Template:Abbr 10 Template:Code Template:Abbr
11 Template:Code Template:Abbr 11 Template:Code Template:Abbr
12 Template:Code Template:Abbr 12 Template:Code Template:Abbr
13 Template:Code Template:Abbr 13 Template:Code Template:Abbr
14 Template:Code Template:Abbr 14 Template:Code Template:Abbr
15 Template:Code Template:Abbr 15 Template:Code Template:Abbr
21w10a rendering changes

For a 128×128 Template:Code which is completely white in the center, and has a one-pixel-thick red border around the edges, we get the following results (recolored to the input texture) for a 1024×1024 window:

21w11a value changes
Index Template:Abbr
21w10a 21w11a
0 4.25 8.5
1 4 8
2 3.75 7.5
3 3.5 7
4 3.25 6.5
5 3 6
6 2.75 5.5
7 2.5 5
8 2.25 4.5
9 2 4
10 1.75 3.5
11 1.5 3
12 1.25 2.5
13 1 2
14 0.75 1.5
Template:Abbr 0.5 1

Bedrock Edition

Template:HistoryTable

Table of visual differences

Host Template:Code Template:Code Notes
Windows 11
AMD Radeon RX 7800 XT
File:Starfield BE.gif All 16 colors are used
Kubuntu 24.04
AMD Radeon RX 7800 XT
File:Starfield (even colors only) BE.gif File:Starfield BE.gif All 16 colors are used

Legacy Console Edition

Template:Info needed section Template:HistoryTable

New Nintendo 3DS Edition

Template:HistoryTable

Notes

Template:Notelist

References

Template:Reflist

Navigation

Template:Navbox visuals