Files
atdunbg f73e52926f Reorganize directory layout: editor panels/, grouped shaders, drop stale header
- App/editor: move 7 panels into panels/ (Editor core stays at root)
- shaders/: group into pbr/ post/ debug/ env/ (runtime load paths updated)
- Delete outdated duplicate Engine/src/Renderer/VulkanAssetUploader.h
2026-10-07 09:52:17 +08:00

18 lines
598 B
GLSL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#version 450
// 选中描边 mask 片元:恒输出 1(选中标记)。
//
// 与 forwardVert 配对(复用 SceneGpu 的 Set0:UBO + 蒙皮 SSBO,静态/
// 蒙皮同一 shader 内分支)。写入 R8Unorm SelectionMask;任何非零 = 该
// 像素属于选中实体(黑色物体也可靠——颜色无关,恒 1)。
layout(location = 0) out vec4 outColor;
// 仅接口对齐(simple_shader.vert 同槽位输出 float,未消费会刷
// validation 警告),mask 不需要视图深度
layout(location = 3) in float fragViewDepth;
void main() {
outColor = vec4(1.0);
}