载入中...
搜索中...
未找到
eve::graphics::VolumeDensityGraph类 参考
Compact acyclic program that evaluates procedural volume density. 更多...
#include <VolumeDensityGraph.h>
类 | |
| struct | Node |
Public 类型 | |
| enum class | Op { constant , height , sphere , box , noise , add , multiply , subtract , clamp } |
| Op public API. 更多... | |
Public 成员函数 | |
| void | clear () |
| Remove every node and reset the output. | |
| int | addNode (Op op, int inputA=-1, int inputB=-1, const glm::vec4 ¶ms=glm::vec4(0.f)) |
| Append a node and return its stable index. Inputs must precede the node. | |
| void | setOutput (int nodeIndex) |
| Select the node returned by evaluate; invalid indices select the last node. | |
| int | getOutput () const |
| int | getNodeCount () const |
| float | evaluate (const glm::vec3 &worldPosition, float time=0.f) const |
| Evaluate signed density at a world position and time. | |
详细描述
Compact acyclic program that evaluates procedural volume density.
在文件 VolumeDensityGraph.h 第 14 行定义.
成员枚举类型说明
◆ Op
|
strong |
Op public API.
| 枚举值 | |
|---|---|
| constant | |
| height | |
| sphere | |
| box | |
| noise | |
| add | |
| multiply | |
| subtract | |
| clamp | |
在文件 VolumeDensityGraph.h 第 17 行定义.
成员函数说明
◆ addNode()
| int eve::graphics::VolumeDensityGraph::addNode | ( | Op | op, |
| int | inputA = -1, |
||
| int | inputB = -1, |
||
| const glm::vec4 & | params = glm::vec4(0.f) |
||
| ) |
Append a node and return its stable index. Inputs must precede the node.
在文件 VolumeDensityGraph.cpp 第 28 行定义.
引用了 node, eve::graphics::VolumeDensityGraph::Node::op , 以及 params.
◆ clear()
| void eve::graphics::VolumeDensityGraph::clear | ( | ) |
Remove every node and reset the output.
在文件 VolumeDensityGraph.cpp 第 23 行定义.
◆ evaluate()
| float eve::graphics::VolumeDensityGraph::evaluate | ( | const glm::vec3 & | worldPosition, |
| float | time = 0.f |
||
| ) | const |
◆ getNodeCount()
|
inline |
在文件 VolumeDensityGraph.h 第 34 行定义.
◆ getOutput()
|
inline |
在文件 VolumeDensityGraph.h 第 33 行定义.
◆ setOutput()
| void eve::graphics::VolumeDensityGraph::setOutput | ( | int | nodeIndex | ) |
Select the node returned by evaluate; invalid indices select the last node.
在文件 VolumeDensityGraph.cpp 第 40 行定义.
引用了 nodeIndex.
该类的文档由以下文件生成:
- src/modules/graphics/VolumeDensityGraph.h
- src/modules/graphics/VolumeDensityGraph.cpp