diff --git a/AGENTS.md b/AGENTS.md
index 89ea57ebe..e1a411c58 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -304,7 +304,9 @@ hand, emitted once the item's pose is on the matrix stack, so first person, the
hidden shadow model, and other players share one hook. `HeldLightState` is the
one decision on whether a held item's lit element is burning: the local
player's Toggle Held Lights key puts out everything in their own hands, and by
-default an open flame goes out for any holder whose eyes are under water.
+default an open flame goes out for any holder whose eyes are under water. A
+torch's own texture glows, so an item whose flame is out is drawn through the
+atlas material with its emission off (`EntitySurfaceMode.DOUSED`).
Terrain block lights are per-frame draws, not retained instances: every frame
`ChunkManager.draw` submits each surviving `TerrainLight` (the `RemixLight`
@@ -416,8 +418,9 @@ diluting the sampler's candidate pool.
owns a dynamic articulated light, and a static rule would light it twice
(`LightManager`, `CopperBeaconBlockEntityRenderer`).
- Whether a held item's lit element burns is decided once, in `HeldLightState`;
- the flame, the smoke, the hand light, and the held beam all consult it
- (`HeldItemEffectsRenderer`, `LightManager`).
+ the flame, the smoke, the hand light, the held beam, and the glow of the
+ item's own texture all consult it (`HeldItemEffectsRenderer`, `LightManager`,
+ `ItemRendererMixin`).
- A terrain light's cull is the decision not to draw it this frame, never a
destroy; the radius `TerrainState` holds is finite and pushed only on
change, because a changed radius dirties the whole flood (`ChunkManager`,
diff --git a/docs/IN_GAME_GUIDE.md b/docs/IN_GAME_GUIDE.md
index 71d3545d9..f20d32566 100644
--- a/docs/IN_GAME_GUIDE.md
+++ b/docs/IN_GAME_GUIDE.md
@@ -158,7 +158,7 @@ folder. Camera commands are unavailable while a benchmark is running.
|---|---|
| Toggle RTX Rendering (default `F8`) | Turn path tracing off, or back on, without opening chat. The new state shows above the hotbar |
| `Alt+X` | Open the RTX Remix runtime's own developer overlay, or close whichever Remix overlay is open, including the Graphics Settings menu that the button on the settings screen opens; each menu's own close button closes it too. What you change in either overrides the mod's settings. While one is open, Minecraft receives no keyboard or mouse input at all, Escape included; close the menu or press `Alt+X` to return |
-| Toggle Held Lights (default `G`) | Put out everything lit in your hands, a torch's flame and light or a Copper Beacon's beam, and light it again |
+| Toggle Held Lights (default `G`) | Put out everything lit in your hands, a torch's flame, glow and light or a Copper Beacon's beam, and light it again |
| `R` | Start and stop a camera recording, once `/rtx camera record` has armed it |
| `=` and `-` | While recording, move the time of day forward or back in normal steps. Hold `Ctrl` for larger steps |
| `F1` | Hide the interface, including your own hand |
diff --git a/renderer-core/src/com/nvidia/rtxremix/minecraft/entity/CapturedEntityGeometry.java b/renderer-core/src/com/nvidia/rtxremix/minecraft/entity/CapturedEntityGeometry.java
index cf62ce443..73c785cda 100644
--- a/renderer-core/src/com/nvidia/rtxremix/minecraft/entity/CapturedEntityGeometry.java
+++ b/renderer-core/src/com/nvidia/rtxremix/minecraft/entity/CapturedEntityGeometry.java
@@ -23,6 +23,7 @@ public interface CapturedEntityGeometry {
Object getPartSprite(int part);
int getPartTint(int part);
int getPartBlockItemLayer(int part);
+ boolean isPartDoused(int part);
int cardFaceOfPartStartingAt(int start);
int getVertexCount();
diff --git a/renderer-core/src/com/nvidia/rtxremix/minecraft/entity/EntityRenderContext.java b/renderer-core/src/com/nvidia/rtxremix/minecraft/entity/EntityRenderContext.java
index b5f6c8ebd..70e30d89c 100644
--- a/renderer-core/src/com/nvidia/rtxremix/minecraft/entity/EntityRenderContext.java
+++ b/renderer-core/src/com/nvidia/rtxremix/minecraft/entity/EntityRenderContext.java
@@ -48,6 +48,7 @@ public final class EntityRenderContext {
/** Entity whose hand-held item is being rendered, or null outside a held-item render. */
private Object heldItemHolder;
private int blockItemLayer = NO_BLOCK_ITEM;
+ private boolean heldItemDoused;
/** The viewer's eye in the capture's space, valid while {@link #eyeKnown}. */
private final Vector3f eye = new Vector3f();
@@ -85,6 +86,7 @@ public void begin(boolean remixPass) {
this.activeHand = null;
this.heldItemHolder = null;
this.blockItemLayer = NO_BLOCK_ITEM;
+ this.heldItemDoused = false;
this.eyeKnown = false;
this.boneCounter = 0;
// Bone transforms are not cleared: the pre-allocated Matrix4f objects are
@@ -119,6 +121,7 @@ private void closeCapture() {
this.activeHand = null;
this.heldItemHolder = null;
this.blockItemLayer = NO_BLOCK_ITEM;
+ this.heldItemDoused = false;
this.eyeKnown = false;
}
@@ -145,6 +148,22 @@ public void setBlockItemLayer(int blockItemLayer) {
this.blockItemLayer = blockItemLayer;
}
+ /**
+ * Whether the item currently being rendered is a hand-held one whose lit
+ * element is out, so its own texture must not glow either.
+ *
+ *
Set and sampled as {@link #getBlockItemLayer()} is: by
+ * {@code ItemRendererMixin} for one item render, and by
+ * {@link RemixCapturingConsumer} as each part opens.
+ */
+ public boolean isHeldItemDoused() {
+ return heldItemDoused;
+ }
+
+ public void setHeldItemDoused(boolean heldItemDoused) {
+ this.heldItemDoused = heldItemDoused;
+ }
+
/**
* The viewer's eye in the capture's space, or null when the capture owner
* has not supplied it. The first-person pass knows it, because its capture
diff --git a/renderer-core/src/com/nvidia/rtxremix/minecraft/entity/EntitySurfaceMode.java b/renderer-core/src/com/nvidia/rtxremix/minecraft/entity/EntitySurfaceMode.java
index 2a88f6a5b..ed3052105 100644
--- a/renderer-core/src/com/nvidia/rtxremix/minecraft/entity/EntitySurfaceMode.java
+++ b/renderer-core/src/com/nvidia/rtxremix/minecraft/entity/EntitySurfaceMode.java
@@ -10,5 +10,11 @@ public enum EntitySurfaceMode {
CUTOUT,
TRANSLUCENT,
EMISSIVE,
- GLASS
+ GLASS,
+ /**
+ * A block-atlas cutout with its emission off: a hand-held item whose lit
+ * element is out. A torch's texture glows by itself, so the torch would
+ * otherwise look lit after its flame and its light have gone.
+ */
+ DOUSED
}
diff --git a/renderer-core/src/com/nvidia/rtxremix/minecraft/entity/RemixEntitySubmitter.java b/renderer-core/src/com/nvidia/rtxremix/minecraft/entity/RemixEntitySubmitter.java
index 3d0eb1a73..64dbfc946 100644
--- a/renderer-core/src/com/nvidia/rtxremix/minecraft/entity/RemixEntitySubmitter.java
+++ b/renderer-core/src/com/nvidia/rtxremix/minecraft/entity/RemixEntitySubmitter.java
@@ -699,6 +699,8 @@ private static final class PooledMesh {
*/
private final IdentityHashMap