updated example programs that are second_triangle and third_triangle

This commit is contained in:
2023-06-05 17:10:52 +08:00
parent 01cdb7661b
commit 7f1532dc6e
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ private:
bool InitMaterial() bool InitMaterial()
{ {
mtl::Material2DCreateConfig cfg("VertexColor2D"); mtl::Material2DCreateConfig cfg(device->GetDeviceAttribute(),"VertexColor2D");
#ifdef USE_ZERO2ONE_COORD #ifdef USE_ZERO2ONE_COORD
cfg.coordinate_system=CoordinateSystem2D::ZeroToOne; cfg.coordinate_system=CoordinateSystem2D::ZeroToOne;

View File

@@ -46,7 +46,7 @@ private:
bool InitMaterial() bool InitMaterial()
{ {
{ {
mtl::Material2DCreateConfig cfg("VertexColor2D"); mtl::Material2DCreateConfig cfg(device->GetDeviceAttribute(),"VertexColor2D");
cfg.coordinate_system=CoordinateSystem2D::NDC; cfg.coordinate_system=CoordinateSystem2D::NDC;
cfg.local_to_world=true; cfg.local_to_world=true;