Materials and shaders
The in-game measurement records (material file comments and names, depthFunc, disabling the depth test, creaking_eyes) are in Content and rendering claim measurements.
Concept
A material decides "which shader to draw with and in what state (blend, depth, culling, stencil)". Most of the game is hard-coded to specific materials, so you cannot attach a new material, and only some things such as entities and particles can be swapped by name. A material inherits a previously defined material and edits it, and it has no namespace (Source: bedrock-wiki visuals/materials).
{
"materials": {
"version": "1.0.0",
"<new material ID>:<base material ID>": {
"+defines": [], "-defines": [], "+states": [], "-states": []
}
}
}
Most vanilla entity materials descend from entity_static. Following one villager material shows the inheritance.
"villager_v2_masked:entity_multitexture_masked": { "depthFunc": "LessEqual" },
"entity_multitexture_masked:entity_alphatest": { "+defines": ["MASKED_MULTITEXTURE"] },
"entity_alphatest:entity_nocull": { "+defines": ["ALPHA_TEST"], "msaaSupport": "Both" },
"entity_nocull:entity": { "+states": ["DisableCulling"] },
"entity:entity_static": { "+defines": ["USE_OVERLAY"], "msaaSupport": "Both" }
entity_static is the root without a colon and directly holds vertexShader, fragmentShader, vertexFields and variants (skinning and so on). + is add and - is remove.
Field summary (Source: bedrock-wiki documentation/material-config-description)
| Field | Meaning |
|---|---|
states | Render states: the 10 names DisableDepthTest, Blending, DisableCulling, DisableColorWrite, DisableAlphaWrite, DisableDepthWrite, StencilWrite, InvertCulling, EnableStencilTest, EnableAlphaToCoverage. states replaces the list, +states adds and -states removes. A name not in the table (Wireframe, DisableRGBWrite and others) logs Trying to use a non-existing render state and has no effect. PolygonOffset only logs is ignored and will have no effect {code}. In the game too, PolygonOffset gave [Rendering][inform]-Render state PolygonOffset is ignored and will have no effect, and Wireframe and DisableRGBWrite gave [Rendering][error]-Trying to use a non-existing render state Wireframe for this material! and ... DisableRGBWrite for this material! respectively {measured} |
defines | Shader macros (ALPHA_TEST, USE_EMISSIVE, USE_OVERLAY, USE_UV_ANIM, FANCY, ENABLE_FOG, ENABLE_LIGHT and so on) |
depthFunc | Depth comparison: Always, Equal, NotEqual, Less, Greater, GreaterEqual, LessEqual (there is no Never {code}). On Windows 1.26.65.1, a box entity whose material is a child of entity_alphatest with Greater showed only its shadow on open ground, and behind a stone block only the part overlapping the stone's side face was drawn (record) |
stencilRef, stencilReadMask, stencilWriteMask | Stencil reference value and masks |
frontFace, backFace | stencilFunc (the same value set as the depth function), stencilFailOp, stencilDepthFailOp, stencilPassOp (only the two values Keep and Replace {code}) |
blendSrc, blendDst, alphaSrc, alphaDst | Blend factors: DestColor, SourceColor, Zero, One, OneMinusDestColor, OneMinusSrcColor, SourceAlpha, DestAlpha, OneMinusSrcAlpha |
samplerStates | Per-sampler textureFilter, textureWrap, shaderStage. Values are in the enum table below |
msaaSupport | Multisampling support: NonMSAA, MSAA, Both {code} |
stencilRefOverride | Boolean. Setting stencilRef writes the same value to the front and back reference and also turns this flag on {code} |
depthBias, slopeScaledDepthBias | Float. Depth bias values. There is no range check, and the value with its sign flipped is stored in the rasterizer state. The default is unknown {code}. Materials given 5.0, -5.0, 1000000.0, -1000000.0 and a slopeScaledDepthBias of 100000.0 and -100000.0 were accepted without an error log. Of 11 cubes, only the two given 5.0 and -5.0 were not visible, and the reason is unknown. When an entity with the default material (red) and an entity with the changed material (blue) were spawned at the same position and depthBias was set to 1000, -1000, 50000, -50000, 1000000 and -1000000 and slopeScaledDepthBias to 1000 and -1000, only the blue one was visible in both spawn orders. Neither size nor sign changed the z order, so no effect was visible. Whether the bias is not applied or the setup was insufficient was not settled {measured} |
primitiveMode | String enum: None, QuadList, TriangleList, TriangleStrip, LineList, Line. Case sensitive; an unknown value is skipped without a log {code}. Materials given LineList and Line loaded and spawned with no crash or log line, and the drawn shape could not be told to be a line because the entity was half buried in the ground {measured} |
renderTargetFormats | An array of arrays (one string array per render target). The 28 value names are in the table below. A wrong entry becomes UNKNOWN_TEXTURE_FORMAT (0) {code} |
samplerIndex in samplerStates, field in vertexFields | Sampler index (only 0 to 7 are accepted, and an entry with 8 or more is skipped whole without a log; a missing key means 0), vertex field name {code} |
variants | Variants such as skinning |
The test order is the stencil test first and then the depth test. Blending is final RGB = current color x source factor + buffer color x destination factor. The engine defaults are blendSrc SourceAlpha, blendDst OneMinusSrcAlpha, alphaSrc One, alphaDst OneMinusSrcAlpha. When you declare Blending, you usually also set blendSrc and blendDst. This field description document partly mixes in NetEase edition features (NETEASE_SKINNING and so on).
All enum values and the states bits {code}
These are the values the material parser of the Windows 1.26.65.1 client accepts. Names are case sensitive. An unknown key is ignored without a log (the parser looks up only known keys by name), and only an unknown states value is logged. A wrong enum string puts the default slot value in without a log.
| Field | Accepted values and internal values |
|---|---|
depthFunc, stencilFunc | Equal 0, NotEqual 1, Always 2, Less 3, Greater 4, GreaterEqual 5, LessEqual 6. There is no Never |
blendSrc, blendDst, alphaSrc, alphaDst | DestColor 0, SourceColor 1, Zero 2, One 3, OneMinusDestColor 4, OneMinusSrcColor 5, SourceAlpha 6, DestAlpha 7, OneMinusSrcAlpha 8. There is no OneMinusDestAlpha |
stencilFailOp, stencilDepthFailOp, stencilPassOp | Keep 1, Replace 3 |
primitiveMode | None 0, QuadList 1, TriangleList 2, TriangleStrip 3, LineList 4, Line 5. LineStrip is a name in another table and not a value of this field |
msaaSupport | NonMSAA 1, MSAA 2, Both 3. If an internal global value is 1, it overrides the value read with NonMSAA (what this global means is unknown) |
textureFilter | Point 0, Bilinear 1, Trilinear 2, MipMapBilinear 3, TexelAA 4, PCF 5 |
textureWrap | Repeat, Clamp |
shaderStage | Vertex 1, Pixel 2, Geometry 4 |
vertexFields[].field | Position 0, Color 1, Normal 2, Tangent 3, UV0 4, UV1 5, UV2 6, PBRTextureIdx 7, BoneId0 8, PreviousPosition, HummingbirdPosition, HummingbirdColor, HummingbirdAdditional, Mers, GeoType (the values of the last six are unknown) |
renderTargetFormats | UNKNOWN_TEXTURE_FORMAT 0, R32G32B32A32_FLOAT 2, R16G16B16A16_FLOAT 10, R16G16B16A16_UNORM 11, R32G32_FLOAT 16, R10G10B10A2_UNORM 24, R8G8B8A8_UNORM 28, R8G8B8A8_UNORM_SRGB 29, R16G16_UNORM 35, R16G16_UINT 36, D32_FLOAT 40, R32_FLOAT 41, R32_UINT 42, R24G8_TYPELESS 44, D24_UNORM_S8_UINT 45, R24_UNORM_X8_TYPELESS 46, D16_UNORM 55, R8_UNORM 61, R8_UINT 62, A8_UNORM 65, BC3_UNORM 77, R5G6B5_UNORM 85, R5G5B5A1_UNORM 86, B8G8R8A8_UNORM 87, B8G8R8A8_UNORM_SRGB 91, BC7_UNORM 98, R4G4B4A4_UNORM 115, R8G8B8_UNORM 145. The internal values equal the DXGI numbers. The spelling of the names was assembled from string fragments in the code |
The 10 names and bits of states are as follows. states sets the bits to 0 and then turns the listed ones on, replacing the state; +states turns more on and -states turns them off.
| Name | Bit | Where it is read |
|---|---|---|
DisableDepthTest | 0x1 | when set, the depth test is not used |
Blending | 0x2 | blending on |
DisableCulling | 0x4 | no cull mode |
DisableColorWrite | 0x8 | color write mask 0 |
DisableAlphaWrite | 0x10 | removes alpha from the mask |
DisableDepthWrite | 0x20 | no depth write |
StencilWrite | 0x40 | not read by the state parser (other consumers are unknown) |
InvertCulling | 0x80 | front-face culling |
EnableStencilTest | 0x100 | stencil on |
EnableAlphaToCoverage | 0x200 | adds the ALPHA_TO_COVERAGE define |
The cull mode is none if DisableCulling is set, front-face culling if InvertCulling is set, and the default cull mode otherwise. The color write mask is 0 if DisableColorWrite is set; otherwise RGB, with alpha added only when DisableAlphaWrite is absent. PolygonOffset is an ignored name, so it only logs Render state ... is ignored and will have no effect.
Example: linking an alpha test entity material to a client entity
{
"materials": {
"version": "1.0.0",
"invert_culling:entity": { "+states": ["InvertCulling"] }
}
}
Save this file as RP/materials/entity.material, import it in the client entity as "materials": {"default": "invert_culling"}, and the render controller uses Material.default.
Below are rules and recipes gathered from the community research (Source: private research).
Rules for files and inheritance
- Entity materials are
RP/materials/<x>.material. For animated entity textures and the like, the file name must beentity.materialand must not have a.jsonextension. Built-in material names have no namespace. If a material does not load, an error is left in the content log.{community confirmed}A material defined only inmaterials/entity_1.materialwas not read and gaveMaterial "..." is referenced ... but not defined.(measurement record, 2026-11-19 Windows 1.26.65.1). - A
//comment line inmaterials/entity.materialdid not stop the file from loading. Measured (2026-11-19 Windows 1.26.65.1): an entity usingjuc_mat:entity_alphatest, defined next to the comment line, was drawn; with a material name that does not exist (juc_missing) only the shadow remained and the entity was not visible (record). - If the key in an attachable's
materialsis not correct, you get "Material ... referenced but not defined". There is a case where this error was fixed by raising the pack version in the manifest. - Vanilla material inheritance has had problems since 1.16 (source: bedrock-wiki), and there is a case that worked only after copying the whole vanilla definition. Conversely, there is also advice not to put vanilla material entries in a custom
.materialfile (trying nocull stopped the rendering).{conflict} - Using a material not meant for entities on an entity gives "shaders/color_texture.fragment cannot be assigned to an entity". A solid pink is a broken material and a pink-black checker is a missing texture. Around 2026-04-23/24, vanilla horses, fish and tropical fish looked pink even without add-ons. Changes take effect only after a full game restart, and
/reload alldoes not refresh materials. A missing custom sky material also gives[Rendering][error] ... | Mesh material doesn't existin the content log. - Where the vanilla definitions are:
...\Minecraft for Windows\Content\data\resource_packs\vanilla\materials\entity.material(on Windows GDKC:\XboxGames\Minecraft for Windows\Content\data) or in BDS. bedrock-samples also has some. - Microsoft has practically not documented materials (the Microsoft Learn material-files document has some). Entity materials break with VV and every release, and one developer says a full rewrite is needed.
- Marketplace: If you attach a namespace without modifying vanilla materials, you can use custom materials in Marketplace add-ons.
- Constraints of the current version (2026-10): only some blend pairs work, only
EnableStencilTestis respected, andDisableRGBWriteis not used (the valid name isDisableColorWrite). ORE UI uses stencil, so entities can be drawn over the UI. TheWireframestate has no effect in RenderDragon. A custom material combining multitexture, emission and alpha (+defines ALPHA_TEST, USE_EMISSIVE, USE_MULTITEXTUREand 2 samplerStates) crashed the game. - Hard-coded things: The creeper material seems hard-coded. Materials like the wolf do not support alpha in vanilla.
custom_animated:entityusingUSE_UV_ANIMandALPHA_TESTshowed a black background (unresolved). To do transparency and dyeing together (wolf collar), use an overlay texture (a separate layer). The enchant glint color is hard-coded in the engine and the glint texture can be replaced.
Emission (without VV)
entity_emissive_alpha: The texture alpha becomes glow, and the more transparent, the brighter. Keep the pixels that glow at a minimum of about 5% opacity, not alpha 0 (about 10~20% is commonly used), and the mesh stays opaque; if you need translucency, useentity_beam_additive. It is the Enderman and spider eye effect (the spellingentity_emmisive_alphais a typo). It glows regardless of light level. Fully transparent pixels must be black and the material must apply to all bones. It also works on armor textures but may not work together with the enchant glint{unverified}. To do partial translucency and emission together, split the materials. To make only part glow, like hair, make the glowing part transparent (alpha). The question that alpha about 11 is not enough is unresolved. The vanillaspiderandendermanmaterials andemissive_alphatestserve the same purpose, and a player skin can also be made to glow by changing the material.{community confirmed}(Source: bedrock-wikivisuals/glowing-texturedoes it the same way)- Enderman eyes: The texture is
textures/entity/enderman/enderman.tga, and to glow on Fancy the alpha of the eye pixels must be 0. A VV-compatible version is harder. - Other emissive and unshaded materials:
entity_beam_additive(translucent glow and gradient beams such as the charged creeper and lightning, translucent players also glow, disappears at some angles),charged_creeper(may disappear at some angles, alternativelightning_bolt),breeze_wind_charge(unshaded glow, a custom+defines USE_EMISSIVEis a case that failed),entity_emissive_alpha_one_sided(title and nameplate entities). - Animation and emission:
{"materials":{"version":"1.0.0","entity_emissive_animated:entity_emissive_alpha":{"+defines":["USE_UV_ANIM"]}}}. Custom materials such as"electro_rocket:entity_alphatest": {"+defines": ["USE_UV_ANIM"]}are also used. For animated textures,breeze_windorplayer_animatedalso work. - Glowing parts such as a lightsaber: Use
entity_beam_additiveon the attachable. To make it glow more strongly at night, split the geometry and render controller into an outer glow shell and an inner core, and give the inner oneentity_emissive_alpha. Useentity_beam_additivealso for fire and plasma models, and giving additive to a white inner cube and a yellow outer cube makes lightning. Strong glow needs VV. - An additive material works well.
- Vanilla
creaking_eyesused as the only material did not draw the box and left only the shadow. When the same geometry was first drawn withentity_alphatestand a second render controller drew it again withcreaking_eyesandignore_lighting: true, the texture color was painted only on faces whose depth matched the body, as bright at night as by day, and the texture alpha (255, 170, 85, 0) made no difference. The vanilla creaking also uses this material to draw the eyes over the body. It looked the same with fancy graphics off, and in deferred mode (game optiongraphics_mode2) it became a red that is not bright (measurement record, 2026-11-19 Windows 1.26.65.1).
"entity_add:entity_emissive_alpha": {
"-defines": ["FANCY", "ENABLE_FOG", "ENABLE_LIGHT"],
"+states": ["Blending", "DisableDepthWrite"],
"blendSrc": "SourceAlpha",
"blendDst": "One"
}
The old variant entity_additive_old:entity_alphablend (+defines USE_EMISSIVE, DisableAlphaWrite) needs light nearby.
- Armor that really emits light is impossible. Fake the glow with the render controller
ignore_lightingorentity_emissive_alpha, and use MER under VV. Block-sideshaded-type options are only shortcuts that turn offface_dimmingandambient_occlusionand are not per-pixel emission. The light of the firefly bush is a separate block texture (firefly_bush_firefly.png) and material. - "flashbang": The problem of an emissive material flashing like a flashbang when seen from below in the daytime is unresolved. With a custom
entity.material, the enchant glint hides emissive armor trims (unresolved).
Translucency, blend, culling
- If the back face shows in an alpha region, use
entity_alphatestinstead of glass-like alpha blend. Transparent regions coming out black or in an odd color is also a material choice problem. - Translucent materials:
slime_outer(applied per bone in the render controller),beacon_beam_additive,entity_alphablend. An attempt at unshaded alpha is"entity_unshaded_alpha:entity_alphablend": {"+defines": ["USE_EMISSIVE"]}.entity_alphablendcan lose the back face on 2D entities, so use a custom "stacking translucency" material (see materials at the-bedrock-notebook.dev). - If there is an opaque cube inside
entity_alphablend, blending stops, so it is all or nothing. An example custom material for stacked layers is"glint:entity_alphablend": {"+defines":["USE_EMISSIVE"],"+states":["Blending","DisableCulling","DisableDepthWrite"]}and adddepthFunc: lessEqualif needed (see https://www.the-bedrock-notebook.dev/materials/topics/blending.html ). An alphablend that usesBlending,DisableDepthWriteandDisableDepthTesttogether is drawn under water and name tags (unresolved). The vanilla horse uses a hard-coded pattern material, and layered mob materials other than iron_golem turn purple when used on other mobs. entity_alphablenddraws a box in which other translucent objects are not rendered.entity_emissive_layer_alpha_blend(the entity becomes invisible) andbreeze_wind(worked on a translucent projectile) were proposed.- Overlapping alpha planes:
"overlap:entity_alphablend"with"+states": ["DisableCulling","DisableDepthWrite"]andblendSrc: SourceAlpha. To avoid stacked transparent pixels blending with each other inside one material, turn off blending in the material. - Double sided and inverted culling: Double sided is
"+states": ["DisableCulling"]. For front-face culling, put"invert_culling:entity": {"+states":["InvertCulling"]}and use it in the client entity as"materials": {"default": "invert_culling"}. If you need translucency, changeentitytoentity_alphablend. The render controller itself has no culling option. - If a translucent bone hides an inner bone, split the geometry and give each its own render controller (one
entity_alphablend, oneentity_alphatest). The bone order in the Outliner also matters. The custom material used:"entity_translucent:entity_alphatest": {"+states":["Blending"],"+defines":["USE_OVERLAY","USE_EMISSIVE"]}. - If the inside faces of title and text models show, use
entity_alphatest_one_sided(not in the wiki but works) orentity_emissive_alpha_one_sided, and rebuild the texture with padding to prevent bleeding. A custom variant"title_letters:entity_alphatest": {"-states":["DisableCulling"],"-defines":["FANCY"]}. Removing FANCY also removes VV shading. - Arbitrary alpha (without baking it into the texture): (a) Materials that control alpha directly (
player_spectator,warden) need a runtime_identifier. (b) A 2x1 texture (one alpha 0 pixel, one opaque) with a bilinear material and a UV animation between the two pixels. (c) Manual blending with an additive pass after a multiply or alphablend pass (the order is hard, and VV compatibility only when the first step is alphablend). (d) TheUSE_COLOR_MASKmaterial define worked on custom entities without a runtime id (not on creepers and pigs). (e) The Ender Dragon dissolve effect, particles for geometry fade, texture arrays with different alpha in the render controller. - A black and white filter is impossible. Blending is per component so there is no mixing between channels, so only red, green and blue single colors work. VV (grading saturation) or a custom shader is needed.
- Ghost material (non-VV):
"ghost_material:entity_alphablend": {"+defines":["USE_EMISSIVE"],"+states":["Blending","DisableCulling"]}. Portal fade:"+defines": ["USE_UV_ANIM"], "+states": ["Blending","DisableDepthWrite"]. - A translucent entity on the water surface: The depth-only pass writes depth during the opaque entity pass, so entities behind it that are drawn later disappear. A known unresolved problem.
Stencil and outlines
Concept: Draw the base model with a material that writes a stencil value, then draw an inflated copy with a material that draws "only where it is not that value", and only the border remains.
"outline_base:entity_alphatest": {
"+states": ["EnableStencilTest", "StencilWrite"],
"frontFace": { "stencilFunc": "Always", "stencilFailOp": "Replace", "stencilDepthFailOp": "Replace", "stencilPassOp": "Replace" },
"backFace": { "stencilFunc": "Always", "stencilFailOp": "Replace", "stencilDepthFailOp": "Replace", "stencilPassOp": "Replace" },
"stencilRef": 2
},
"outline_main:entity_alphatest": {
"+states": ["EnableStencilTest", "DisableDepthWrite"],
"-defines": ["FANCY"],
"depthFunc": "Always",
"frontFace": { "stencilFunc": "NotEqual" },
"backFace": { "stencilFunc": "NotEqual" },
"stencilRef": 2
}
It needs inflated geometry, a separate texture, and a render controller for each (the arxance "Entity Outline" template). {community confirmed}.
A Mojang-style outline example:
"outline:entity_static": {
"+states": ["InvertCulling", "EnableStencilTest", "DisableDepthWrite", "Blending"],
"+defines": ["USE_OVERLAY"], "-defines": ["FANCY"],
"depthFunc": "Always",
"frontFace": { "stencilFunc": "NotEqual" },
"backFace": { "stencilFunc": "Equal" },
"stencilRef": 2, "stencilReadMark": 2
}
stencilReadMarkin this example is a typo. The client readsstencilReadMask; nothing readsstencilReadMark, so it is ignored{code}.- Other variants: (1)
outline_main:outline_basewithdepthFunc Always,-defines [lighting, ENABLE_LIGHTING],+states [DisableDepthWrite, DisableCulling], stencilNotEqual/Keep. Removing-defines FANCYreduced flicker (2026-08-18). (2) outline_base is EnableStencilTest, StencilWrite, DisableCulling, stencilRef 6, and outline_main is depthFunc Always, stencilFunc Greater. The first-person variant adds DisableDepthWrite to prevent z-fighting but fails against the VV sky. (3) The base material (InvertCulling,DisableDepthWrite,EnableStencilTest,depthFunc LessEqual, stencilFuncNotEqual) skips where the base entity was drawn. Blending cannot be used on the base, so make the base opaque (inheritingentity), the outlineentity_alphatest, and hide the base by addingDisableColorWriteandDisableAlphaWriteto it. (4) In a global outline attempt, the problem of the outline being drawn over the model was unresolved. There is also a setup using 2 render controllers in theentity_glow_baseandentity_glow_outlinestyle. - If the outline shows through blocks and entities, turn off
depthFunc: Always. An outline that goes through blocks but not entities is impossible unless you give a custom material to every entity. An example client entity setup: materialsoutline_baseandoutline, outline texturetextures/ui/White, 2 geometries,controller.render.defaultand an outline controller. - Trade-off: An outline that handles several crossing entities cannot be transparent, and a transparent outline cannot handle overlap. If you want both, keep separate base and outline entities. In first person the stencil buffer is not reset on the next frame, and in third person it is cleared before transparency processing.
- stencilRef layers:
stencilRefis a layer number. High layers mix with vanilla materials (crosshair, doors, Ore UI screens), so do not exceed 32. Vanilla entity shadows usestencilRef1, so use 2. To use several outlines, duplicateoutline_basewith a higherstencilRef, and to draw something else over an outline (name, health bar), copy the outline material and lower that entity's layer. - Render order: The render order of entities using stencil can depend on the entity file name (alphabetical load order), not the material name. Blend mode and so on still take priority.
WriteMaskcannot be trusted, and on attachables the stencil is read-only. Test on other platforms before relying on order. - Where stencil does not work: Stencil does not work on particles (use an entity). Outlines cannot be used on blocks (entity and attachable materials are needed). Ordinary hand items (things without an attachable such as diamonds and ingots) use inaccessible hard-coded materials and cannot be outlined, so an attachable, a custom material, and a separate outline model and texture are needed.
Outline template details
- The outline model for an attachable is made by inflating the item model in Blockbench. If the outline ignores the item's rotation and animation, put the outline cubes in a sub-bone inside the same root bone (
root > outline_bone > cubes). It must not be a separate bone with a different name, and a model with only inflated cubes plays the animation twice because of the bone name. - Inflating every cube by 0.5 makes inner faces and cubes show through. Inflate only the outer cubes or erase the texture of hidden faces.
- Conditional outline (only when enchanted): Put
"part_visibility": [{ "*": "variable.is_enchanted" }]in the outline render controller, and for armor slot items use the conditionquery.is_item_name_any('slot.armor.chest', 0, 'diamond_chestplate') && query.is_enchantedin the attachablerender_controllersarray. - Keeping the outline and enchant glint: Provide a glint variant of the stencil material (
outline_based:entity_alphatest_glint, stencilRef 2) and a render controller with"materials": [{ "*": "variable.is_enchanted ? Material.enchanted : Material.default" }]and"textures": ["variable.has_trim ? variable.trim_path : Texture.default", "Texture.enchanted"](texturetextures/misc/enchanted_item_glint). The glint controller must be the first in the attachablerender_controllers, otherwise it is drawn in the wrong place or not visible in third person. - Outlines fail on a custom entity declared with entity
format_version1.8.0, so use 1.10.0 and run the client animation controller with the RP entity'sscripts.animate. - A condition example for players:
"controller.render.x.outline": "!v.is_first_person && !v.is_paperdoll && !q.is_spectator && q.is_angry". - The template is per model (one outline geometry per mesh, one render controller if the geometry differs). It cannot be applied generally to all add-on mobs and only a client mod can do it.
- The player model geometry names are
geometry.humanoid.custom(wide arms) andgeometry.humanoid.customSlim. Slim detection is hard-coded and unstable (cape), so template v3 provides only a slim outline. - Outline only when looked at: Give the entity a property, have a script detect the look target and set the property, and let the property drive a conditional render controller.
- Known problems: The crosshair disappears over an outlined mob (fixed in later templates). The outline layer can break the
!q.is_in_uisituation. Server packs that change the player material can break the outline. - Template V3 (3.2 zip, 2026-06-18/19): Rewritten with a single material, added first-person item outlines, a cartoon edge, and an overlay color instead of the outline texture. Known problems are that Blending does not go well with VV and that first-person attachable outlines are buggy under VV. An example outline shown only to specific players by script uses
entity.playAnimation(name, { players: [...] }). - There are reports that an inverted-hull outline does not render properly, and a single-sided material can give a "minus the inflated cube" feel (not a real stencil) but it is incomplete and lines appear inside the model.
- Portals and bigger-on-the-inside effects:
EnableStencilTeststill works. An entity masking effect (like a portal) is made with about 5 custom materials per geometry region. A fake portal or room effect is a full 3D room model and a custom stencil material. There is a case of a stencil "rift" effect, where the inside shows only through the model's top face and the side faces stay hidden, made to work with VV both on and off. Objects sticking out past the rift edge could be drawn, and the limit left was that the player body renders inside it in first person{single report}. In another stencil rift entity, objects behind the mask also drew over the player, and no material setup was found that hides the far object while keeping nearer entities in front{single report}. Under VV in the Overworld, a stencil plane in front of a cube showing as a gray texture (hidden against the sky) is unresolved. - Skybox without fog (multipass): Draw the large skybox first, then the small one with color (the large one alone has no effect). Material
"+states":["EnableStencilTest","StencilWrite","DisableDepthWrite"],"-defines":["FANCY","ENABLE_FOG","ENABLE_LIGHT"],stencilRef3.
Depth: seeing through walls, drawing in front
- Seeing through walls: The material's
"depthFunc": "Always"shows things beyond blocks. Example:"entity_alphatest_omniscient:entity_alphatest": {"depthFunc":"Always"}inmaterials/entity.material(the file name matters).DisableDepthTestorDisableDepthWritealone fails if another entity is in front. Anentity_alphatestderivative with both in+stateswas drawn over both a stone block and another entity in front of it (its own inner faces were also visible, measurement record, 2026-11-19 Windows 1.26.65.1). It cannot be done with particles, so use a custom material entity. - Drawing behind blocks but not passing through entities:
{"+states":["DisableDepthTest","DisableDepthWrite","Blending"],"depthFunc":"Always","blendSrc":"SourceAlpha","blendDst":"OneMinusSrcAlpha"}worked (with some inside-out artifacts). - Drawing an entity over a first-person attachable: The depth buffer is cleared before first-person geometry, so use stencil. The entity material
depth_entity:entity_alphatesthas+states ["EnableStencilTest","StencilWrite"],depthFunc: Always, front/backFacestencilFunc Always, andstencilFailOp,stencilDepthFailOpandstencilPassOpallReplace,stencilRef: 2. The attachable materialattachable:entity_alphatesthas+states ["EnableStencilTest"],stencilFunc: NotEqual,stencilRef: 2. - A long glowing beam disappears: Because of fog interpolated per vertex, it disappears when you do not look at a particular point. Make the beam short or split it into 10~100 stacked cubes.
- Debug shapes and VV: VV draws debug lines black and debug object colors differently.
TextPrimitiveshows through blocks under VV even withdepthTesttrue (https://stirante.com/script/server/2.10.0/classes/TextPrimitive.html#depthtest , reporting the bug is recommended). One map creator used entities instead of debug shapes because of the VV depth problem and because they vanish when F1 and the name display toggle. - Hiding name tags through walls: Modify the
name_tag_textmaterial with+states [Blending, DisableDepthWrite],+defines [ALPHA_TEST, USE_EMISSIVE],msaaSupport: Bothand remove thedepthFunc: Alwaysinui3D.material.
Lighting and shadow removal
- Ignoring lighting: Use the render controller's
"ignore_lighting": true(does not work on attachables). It also solves the problem of a model going black inside blocks. Per-direction shading is removed with an emissive material or"-defines": ["FANCY"]in the material JSON. A workaround of raisinglight_color_multiplierto the maximum to render at maximum brightness in any light was also used. There is a report thatignore_lightingdid not work when HUD-like geometry attached to the player got darkened by lighting, so try an emissive material (the paper doll is too buggy). Entities go black when inside blocks (hard-coded, not under RTX). - For attachable lighting, see Attachables and item rendering.
- Removing armor shading:
"entity_noshade:entity": {"-defines":["FANCY"]}removes face shading but it still gets dark at night and in the dark. Tie the noshade material toentity_alphatestand lower the texture opacity (the lower the alpha, the brighter). - Shadow removal (non-VV): There are the
minecraft:renders_when_invisibleand the infinite invisibilityspell_effectsmethods (Bedrock Wikivisuals/remove-shadows). Blob shadows exist only in Fancy mode, and Simple and Raytraced do not use that shadow type. The size of the round shadow under an entity is decided by the collision box, not the model. Large entity shadows cause lag when many spawn, so reduce them.
Materials under VV
- Simple/Fancy and VV materials are not compatible with each other, so switch materials with a graphics mode query. As of 2026-11-14 there is a mention that custom materials now mostly work under VV, and the "Entity Outline" template was updated for it
{single report}. Before that, material variants broke under VV (stencil was fixed first). Under VVDisableColorWriteis broken so a mask cannot be hidden. A VV/RenderDragon custom shader outline worked on Windows and failed on mobile (an invalid material in the base engine). The Fancy"custom_unshaded:entity": {"-defines": ["FANCY"]}has no counterpart under VV, and custom materials with+defines: USE_EMISSIVEhave visual problems under VV (unresolved). - VV stencil: Before 1.21.120, stencil was completely broken under VV, and afterwards fixed "to some extent", but the method of fixing differs from normal rendering, so old materials must be remade. Under VV, outlines are drawn behind the entity. Outlines for normal graphics are drawn in front or flicker under VV, and using the VV one in normal graphics makes the entity shadow cover the outline and creates shadows on doors and signs. VV stencil is unstable, so insert a transparent bone that forces a clear, or draw a full-screen opaque/alphablend pass that turns off depth and color writes and sets stencil 0. First-person item outlines need extra setup.
- Fancy stencil outline: To draw over the sky and water, both materials need the
Blendingstate. As side effects, it is not drawn through other transparent blocks and flickers depending on the angle. You can remove the shadow by removing theFANCYdefine and using the render controllerignore_lighting: true. Under VV, give the texture_set a very small emissive value (about 5/255) to avoid shadows. For texture transparency, theALPHA_TESTdefine is enough. Under VV there is no proper way to ignore lighting without glowing. - Alpha and dithering: VV forces alpha test on transparent materials. The cause of a transparent glow material (
entity_alphablend+USE_EMISSIVE+ stencil states) breaking in VV first person is dithering, so turn it off in the accessibility settings or raise the minimum alpha to avoid alpha test. Custom transparent and translucent materials may not behave as expected under VV. Two alpha-blend cubes 1px apart work under VV but show a see-through bug.entity_noculldoes not work properly under VV. - VV entity emission: The old trick (
entity_emissive_alpha, lowering opacity) does not work under VV. Use the MER emissive channel (green), texture_set and the pbr capability (VV and RTX). Emissive models can flicker under VV. VV per-direction shading can be removed only with SSS or emission. - Pitch-black entities under VV: Use a maximum metalness texture set (candidates
[255,0,0,0],[255,0,255,0],[0,255,0,0],[0,255,255,0]) and a pitch-black color texture. In water, underwater fog (blue tint) still mixes in, and a complete "void" feel was judged impossible. charged_creeper-type VV reflection artifacts were solved by fixingmetalness_emissive_roughnessof the texture set.
Custom shaders (material.bin)
- Kinds: RD shaders (Fancy modification, the easiest), RTX shaders, VV shaders (obfuscated source, the hardest). A real shader needs a replaced
material.binfile, and Mojang does not provide official material.bin loading. The Marketplace has no shaders, and VV/RTX packs are resource packs. Custom VV shader packs such as Mirai 2.11, Bliss and Vanilla Reforged depend on a mod loader. Shaders and materials cannot be distributed with a resource pack. - Installation: Use BetterRenderDragon (BRD), or copy the materials to
C:\XboxGames\Minecraft for Windows\Content\data\renderer\materials. The repair function of the Store and Xbox app may not restore the originals, so back up yourself. The conclusion on the Bedrock OSS side is that custom RenderDragon (including RTX) shaders are possible only by modifying game files. Amaterials.index.jsonthrough a resource pack no longer works, so replace the vanilla.material.bin, or make a new folder in the internalrenderer/materials, put a custom bin there, and add an entry at the very top ofmaterials.index.json(upper entries take priority). In the 2026-05-12 Preview, a newshadersfolder appeared with amaterials.index.jsoncontaining only{"materials": []}. - Compilation: Mojang compiles shaders with a heavily modified bgfx fork, and materials are cross-compiled per platform. Only Windows and Android are moddable. The Lazurite compiler is multithreaded and can compile only the materials chosen with
-m(skip actor; ActorPatternForwardPBR is the slowest). A full compile takes about 15 minutes on 4 cores. It is easiest to take the latest materials from your own game install folder (XboxGames), and the source for compiling is in the newb shader repository (as of 26.20, only the 26.10 version). MaterialBinLoader did not support the beta at the time. For VV shader source reference: veka0/mcbe-shader-codebase. - Per-platform shader formats: Windows and Android are plain-text GLSL/HLSL, Nintendo Switch is precompiled NVN shaders (magic 0x12345678, Maxwell SM53), and newer Switch versions are Vulkan and material.bin (veka.). NetEase (Chinese edition) uses HAL instead of RenderDragon. On the Windows GDK edition, you can use ReShade, RenderDoc and Nsight (not the UWP edition). References: veka0/mcbe-shader-codebase (preview, obfuscated branches), veka0/lazurite, ddf8196/MaterialBinTool.
- The Chinese edition (NetEase) renders with OpenGL, supports Java-style shaders and wider engine access (camera, extra HUD buttons), and has no RTX. It was said that the Chinese edition's light distortion and distant skybox effects cannot be reproduced on the global edition
{unverified}. - Community projects (as of 2026-11): a RenderDragon source reconstruction for 26.60 https://github.com/PandaMine5/RenderDragon2src (no dithering, no actor), a shaderc fork that shrinks shaders https://github.com/PandaMine5/bgfx-mcbe-shaderc (with unused flags stripped, the author reports RenderChunk ESSL 3.0 going from 265.3kB to 38.2kB), Arke https://github.com/LiteLDev/Arke which runs Java shaders (Bliss, Complementary, BSL, Photon) on Bedrock, a shader pipeline example https://github.com/bambosan/mirai , and ShaderGlass, which overlays post-processing on the PC screen.
- End sky: There is a case of editing the End sky
material.binto make an animated End sky for VV (VV noise removed, stars, aurora-like colors, shooting stars, a moving black hole). The non-VV RenderDragon shader "Immersive End Visuals" replaces the End sky; Android needs a material loader and Windows needs a manualmaterial.binreplacement (said to work on Android, iOS and Windows). https://www.curseforge.com/minecraft-bedrock/texture-packs/immersive-end-visuals - The End portal look is a pixel (fragment) shader effect. The shader draws the effect and detects where to draw it through a mask texture in the block's second texture channel. One answer said custom shader editing is practically an abandoned approach today and does not work with VV. An Immersive Portals-style view through a portal cannot be made with the data exposed to add-ons
{single report}. Shader primer: https://learnopengl.com/Getting-started/Shaders - The GDC talk "Modernizing the Rendering of Minecraft" covers DragonFX (a GLSL-based shading language) and shadow and reflection quantization.
- Advice on Java shader development: Start with the Iris tutorial and study readable shaders (BSL, Glimmer). GPUs are weak at branching. I could not find guidance on how to write a real
.hlslshader. - Imitating JSON UI chromatic aberration: Shaders cannot be put in a pack, so bake it into the texture or draw 3 additive copies (R, G, B) with slightly different sizes.
| id | Source | License | Commit | Accessed |
|---|---|---|---|---|
private-research | Private research (-) | - | 2026-11-13 | |
bedrock-wiki | Bedrock Wiki | CC BY 4.0 (docs/licenses/CC-BY-4.0.md in the repository) | 0930b39 | 2026-11-13 |
ms-learn | Minecraft Creator documentation (Microsoft Learn) | CC BY 4.0 (documentation), MIT (code) | a9fd1c0 | 2026-11-13 |