2.1 KiB
Assassin gungsin / 魅影 destination-alpha blending
The original skilldesc identifies 魅影 as skill 32, gungsin. The unchanged PC/PC2 MSA files attach gungsintanyeong start/end/blow effects. Base and grade-four start/end MSE particles use SRCALPHA (5) / DESTALPHA (7), with MODULATE color operation. EffectInstance and ParticleSystemInstance match the reference except include casing; their state order, emission, asset colors, and textures remain unchanged.
RecordingDevice exposes an X8R8G8B8 back buffer and R5G6B5 GPU shadow targets. Both have implicit destination alpha 1. Vulkan stores the scene in RGBA and the previous pipeline incorrectly used the stored, draw-modified alpha for DESTALPHA. This attenuated the background, including zero-alpha opaque scene pixels.
src/host/blend_state.h normalizes DESTALPHA to ONE, INVDESTALPHA to ZERO, and
SRCALPHASAT to ZERO for RGB targets before creating the Vulkan blend pipeline.
Ordinary source-alpha, additive, and color blend factors remain unchanged. This
helper applies only to the currently supported recorded RGB targets; future actual
alpha render targets must retain their own destination-alpha semantics.
Focused CTest host.blend_state passes. The GPU regression command is:
python3 tests/host/rgb_target_blend_test.py build/native/src/port/host_blend_state_test build/release/src/host/mt_native_render
It draws an opaque zero-alpha background followed by a SRCALPHA/DESTALPHA overlay, reads the native renderer's BMP pixel, and checks RGB (128,128,160). The old native executable fails with (0,64,128); the updated executable passes. This exercises actual Vulkan blending, not just the mapping helper.
Native fake-server skill inspection used --py-exec to select the main instance,
set assassin race 1 and armor 0, then chr.PushOnceMotion(chr.MOTION_SKILL+2,0.0).
Screenshots at 8 and 30 frames show bright particles and were inspected. These
timed screenshots are not a deterministic Windows visual oracle. Android debug
APK builds successfully; physical Android GPU and live-server skill-grade checks
remain unverified. The aggregate render contract stays PARTIAL.