preparing blinnphong light sample. added codes of to load ubo.

This commit is contained in:
2024-03-07 13:59:28 +08:00
parent 2ce36ec26c
commit c8b3ed0286
5 changed files with 36 additions and 6 deletions

View File

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

View File

@@ -11,7 +11,7 @@ define HAVE_SPECULAR off //默认不定义HAVE_SPECULAR
UBO
{
File Sun.ubo //文件名
File BlinnPhongSun.ubo //文件名,如果/开头表示从ShaderLibrary根目录开始没有则表示同一目录
Name sun //在代码中的变量名
Stage Vertex,Fragment //会引用的shader
}