feat(shaders_lab): Output node + Functions palette with drag-drop
- DagKind::Output (new enum): terminal sink; compiler wires fragColor to its source_ids[0] - dag_catalog: "output" node (1 input, red) - dag_compile: skips Output in node_<i> emission; final fragColor resolves from Output's connection - dag_node_editor: no more Add button; drops "DAG_NODE_TYPE" payloads at mouse canvas position; Output cannot be deleted; Output has no output pin - dag_palette (new fn): Functions window with grouped, draggable node cards - main.cpp: "Functions" window added; ensure_dag_default seeds plasma + connected Output
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
namespace fn::gfx {
|
||||
|
||||
// Renderiza una paleta del catalogo de nodos agrupada por kind (Gen / Op / Blend).
|
||||
// Cada item es un drag source con payload "DAG_NODE_TYPE" (nombre del nodo).
|
||||
// El Output no aparece en la paleta (es un sink fijo en el grafo).
|
||||
// Llamar dentro de un ImGui::Begin/End.
|
||||
void dag_palette();
|
||||
|
||||
} // namespace fn::gfx
|
||||
Reference in New Issue
Block a user