added a parse in MaterialFileLoader.cpp that it's UBOParse
This commit is contained in:
@@ -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
|
||||
|
||||
|
2
ShaderLibrary/Std3D/Sun.ubo
Normal file
2
ShaderLibrary/Std3D/Sun.ubo
Normal file
@@ -0,0 +1,2 @@
|
||||
vec4 direction;
|
||||
vec4 color;
|
Reference in New Issue
Block a user