增加LightPosition3D.vert计算顶点方向光,配合SceneTree范例
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#version 450 core
|
||||
#version 450 core
|
||||
|
||||
layout(binding=1) uniform WorldMatrix // hgl/math/Math.h
|
||||
{
|
||||
@@ -9,6 +9,7 @@ layout(binding=1) uniform WorldMatrix // hgl/math/Math.h
|
||||
|
||||
mat4 modelview;
|
||||
mat4 inverse_modelview;
|
||||
mat3 normal;
|
||||
|
||||
mat4 mvp;
|
||||
mat4 inverse_mvp;
|
||||
|
Reference in New Issue
Block a user