Files
HelloVulkan/shaders/debug/gizmo_billboard.vert
T
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

23 lines
635 B
GLSL
Raw 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 顶点:世界空间 billboard quad(CPU 侧已面向相机
// 展开),无描述符 set——viewProj 走 push constant(与 debug_line 同约定)。
// aux = (shapeId, uv.x, uv.y, 0),uv ∈ [-1,1] 供片元 SDF 造型。
layout(location = 0) in vec3 inPos;
layout(location = 1) in vec4 inColor;
layout(location = 2) in vec4 inAux;
layout(location = 0) out vec4 outColor;
layout(location = 1) out vec4 outAux;
layout(push_constant) uniform PC {
mat4 viewProj;
} pc;
void main() {
gl_Position = pc.viewProj * vec4(inPos, 1.0);
outColor = inColor;
outAux = inAux;
}