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

22 lines
666 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
// Editor gizmo 拾取顶点:与 billboard 共享同一 ring VB(pos/color/aux
// + entityId 四属性流),画进 HitProxy 的 R32Uint 目标。只有 entityId
// 参与变换输出,color/aux 声明占位(属性流绑定时全开)。
layout(location = 0) in vec3 inPos;
layout(location = 1) in vec4 inColor; // 占位(拾取不用)
layout(location = 2) in vec4 inAux; // 占位
layout(location = 3) in uint inEntityId;
layout(location = 0) flat out uint outEntityId;
layout(push_constant) uniform PC {
mat4 viewProj;
} pc;
void main() {
gl_Position = pc.viewProj * vec4(inPos, 1.0);
outEntityId = inEntityId;
}