Skip to content

How To: Choosing the Right Layer(s)

grondag edited this page Jun 13, 2019 · 20 revisions

Normally, the texture blending mode (solid, cutout, cutout-mipped or translucent) is determined for the entire model by the type of block. JMX, thanks to the Fabric Rendering API, allows every quad to be assigned a different "layer" that overrides the block-level mode.

Developer Notes: In the Fabric view of the Minecraft source code, what JMX calls "layer" is known as BlockRenderLayer. In the Rendering API it is set via MaterialFinder.blendMode().

JMX also enables faces with two sprites and each sprite can have a different layer. This is often useful for overlay and partial emissive effects. More information on this feature is available here.

Clone this wiki locally