added a parse in MaterialFileLoader.cpp that it's UBOParse

This commit is contained in:
2023-12-05 02:08:18 +08:00
parent 775e031422
commit 4aeb28c571
4 changed files with 145 additions and 26 deletions

View File

@@ -3,7 +3,16 @@ Name BlinnPhong+HalfLambert shading model only color
Reference https://zhuanlan.zhihu.com/p/442023993
Base Std3D
Require LocalToWorld,Camera,Sun
//某些Require并不真的存在.ubo文件写成一行一个是为了方便未来改成带路径的
Require LocalToWorld
Require Camera
UBO
{
File Sun.ubo
Name sun
Stage Vertex,Fragment
}
#MaterialInstance

View File

@@ -0,0 +1,2 @@
vec4 direction;
vec4 color;