Slicer options. The mesh is cut into layerCount thin slabs along axis ("x" | "y" | "z"); each slab is orthographically projected into an RGBA image. Slab thickness defaults to AABB extent / layerCount when 0.
更多...
#include <SpriteStack.h>
Public 属性 | |
| int | layerCount = 16 |
| int | imageW = 128 |
| int | imageH = 128 |
| std::string | axis = "z" |
| float | thickness = 0.f |
| float | padding = 0.04f |
| bool | shade = true |
| float | tintR = 1.f |
| float | tintG = 1.f |
| float | tintB = 1.f |
详细描述
Slicer options. The mesh is cut into layerCount thin slabs along axis ("x" | "y" | "z"); each slab is orthographically projected into an RGBA image. Slab thickness defaults to AABB extent / layerCount when 0.
在文件 SpriteStack.h 第 52 行定义.
类成员变量说明
◆ axis
| std::string eve::spritestack::SliceOptions::axis = "z" |
在文件 SpriteStack.h 第 56 行定义.
被这些函数引用 eve::spritestack::SpriteStack::sliceModel() , 以及 eve::spritestack::SpriteStack::slicePrimitive().
◆ imageH
| int eve::spritestack::SliceOptions::imageH = 128 |
在文件 SpriteStack.h 第 55 行定义.
被这些函数引用 eve::spritestack::SpriteStack::sliceModel() , 以及 eve::spritestack::SpriteStack::slicePrimitive().
◆ imageW
| int eve::spritestack::SliceOptions::imageW = 128 |
在文件 SpriteStack.h 第 54 行定义.
被这些函数引用 eve::spritestack::SpriteStack::sliceModel() , 以及 eve::spritestack::SpriteStack::slicePrimitive().
◆ layerCount
| int eve::spritestack::SliceOptions::layerCount = 16 |
在文件 SpriteStack.h 第 53 行定义.
被这些函数引用 eve::spritestack::SpriteStack::sliceModel() , 以及 eve::spritestack::SpriteStack::slicePrimitive().
◆ padding
| float eve::spritestack::SliceOptions::padding = 0.04f |
在文件 SpriteStack.h 第 58 行定义.
◆ shade
| bool eve::spritestack::SliceOptions::shade = true |
在文件 SpriteStack.h 第 59 行定义.
◆ thickness
| float eve::spritestack::SliceOptions::thickness = 0.f |
在文件 SpriteStack.h 第 57 行定义.
被这些函数引用 eve::spritestack::SpriteStack::sliceModel() , 以及 eve::spritestack::SpriteStack::slicePrimitive().
◆ tintB
| float eve::spritestack::SliceOptions::tintB = 1.f |
在文件 SpriteStack.h 第 62 行定义.
◆ tintG
| float eve::spritestack::SliceOptions::tintG = 1.f |
在文件 SpriteStack.h 第 61 行定义.
◆ tintR
| float eve::spritestack::SliceOptions::tintR = 1.f |
在文件 SpriteStack.h 第 60 行定义.
该结构体的文档由以下文件生成:
- src/modules/spritestack/SpriteStack.h