new function, MaterialFileData load UBO OK! to make shader OK.

This commit is contained in:
2024-03-09 22:26:45 +08:00
parent f0848541c2
commit 4fafd938b1
7 changed files with 73 additions and 8 deletions

View File

@@ -12,8 +12,10 @@ define HAVE_SPECULAR off //默认不定义HAVE_SPECULAR
UBO
{
File BlinnPhongSun.ubo //文件名,如果/开头表示从ShaderLibrary根目录开始没有则表示同一目录
Struct BlinnPhongSun //结构名称
Name sun //在代码中的变量名
Stage Vertex,Fragment //会引用的shader
Set Global //Descriptor Set
}
#MaterialInstance