Skip to content

Adult titles

The games this site covers are adult titles. Their data, pictures and text include sexual content.

Continue only if you are an adult where you live.

0x32e set-light

Opcode 0x32e (814), draw. Investigated by OME, with high confidence (from investigation).

(index)(type)(x)(y)(z)(direction_x)(direction_y)(direction_z)(alpha)(rgb)(range) — set one of ten Direct3D lights and enable it.

Operands

#RoleTypes seenAccess
1light index (an index into light, 10 entries, not bounds-checked)immread
2Direct3D light typeimmread
3position ximmread-float
4position yimmread-float
5position zimmread-float
6direction ximmread-float
7direction yl-floatread-float
8direction zimmread-float
9diffuse alphaimmread
10diffuse RGBimmread
11rangeimmread-float

In the port

OME’s port implements it. It never waits: a wait parks the engine until input, a sleep, a transition, a dialog or a movie ends. What it can do with control besides waiting:

  • falls: it returns to the next instruction

OME derives these facts from the port’s handler (its tools/opcode_flow.py), and they over-approximate: a fact some path can reach is given.

By build

Whether each build’s scripts use it, as OME’s survey of the game’s scripts saw them, and how many evidence items name the build.

BuildGameUsed by its scriptsEvidence
4.24J (SYS4422)Himegari Dungeon Meisterno—
4.33G (SYS4433)Kamidori Alchemy Meisterno—
4.38D (SYS4438)Soukoku no Arterialyes1

Evidence

  • native-re on SYS4438, high confidence; Arterial SYS4438 Ghidra /arterial/4.38D and the complete Arterial catalog (vm-map/opcodes.toml opcode 0x32e): op_0x32e_set_light@0x4255f0 reads the position and the direction (operands 3 to 8) and the range (11) as floats and the colour as an alpha, clamped to 0xff, and an RGB, and calls gfx_set_light@0x4867a0, which fills a D3DLIGHT9 (the direction normalized, the colour as its diffuse), keeps it at manager +0xd5bc + index * 0x68 with an enabled flag at +0xd594 + index * 4, both unchecked, and calls the device's SetLight and LightEnable.

Details

OME’s notes on it, as the registry keeps them.

The port keeps the state in the graphics native (Graphics.Scene3D.cs), and the frame lowering draws the rain, the snow and the leaves with it where native's frame render and range present draw them, on the screen or into a render target (Graphics.Scene3DLowering.cs; docs/superpowers/specs/2026-11-20-title-leaves-design.md; docs/engine-re.md, 'The 3D scene'). Point and spot lights, a screen transition's source and a movie mask's capture keep their state and draw nothing (docs/backlog.md, 'The 3D scene's other cases are not drawn').