used newly ShaderAttributeArray

This commit is contained in:
2023-03-17 21:06:05 +08:00
parent f748301787
commit 529d6b7939
18 changed files with 141 additions and 103 deletions

View File

@@ -6,7 +6,7 @@ using namespace hgl::shadergen;
bool PureColor2DMaterial()
{
MaterialCreateInfo mc(1,false); //一个新材质1个RT输出默认使用Vertex/Fragment shader
MaterialCreateInfo mc("PureColor2D",1,false); //一个新材质1个RT输出默认使用Vertex/Fragment shader
//vertex部分
{
@@ -68,7 +68,7 @@ void main()
bool VertexColor2DMaterial()
{
MaterialCreateInfo mc(1,false);
MaterialCreateInfo mc("VertexColor2D",1,false);
//vertex部分
{