调整好坐标轴方向以及裁剪面,并增加最简易坐标轴绘制范例
This commit is contained in:
@@ -19,14 +19,17 @@ struct Material3DCreateConfig:public MaterialCreateConfig,public Comparator<Mate
|
||||
|
||||
public:
|
||||
|
||||
Material3DCreateConfig(const PrimitiveType &p):MaterialCreateConfig(p)
|
||||
Material3DCreateConfig(const PrimitiveType &p,
|
||||
const WithCamera &wc=WithCamera::With,
|
||||
const WithLocalToWorld &l2w=WithLocalToWorld::With)
|
||||
:MaterialCreateConfig(p)
|
||||
{
|
||||
rt_output.color=1; //输出一个颜色
|
||||
rt_output.depth=true; //不输出深度
|
||||
rt_output.stencil=false; //不输出stencil
|
||||
|
||||
camera=true;
|
||||
local_to_world=false;
|
||||
camera=(wc==WithCamera::With);
|
||||
local_to_world=(l2w==WithLocalToWorld::With);
|
||||
|
||||
position_format=VAT_VEC3;
|
||||
|
||||
|
@@ -23,6 +23,12 @@ namespace hgl::graph
|
||||
|
||||
namespace mtl
|
||||
{
|
||||
enum class WithCamera:uint8
|
||||
{
|
||||
Without=0,
|
||||
With
|
||||
};
|
||||
|
||||
enum class WithLocalToWorld:uint8
|
||||
{
|
||||
Without=0,
|
||||
|
Reference in New Issue
Block a user