增加LightPosition3D.vert计算顶点方向光,配合SceneTree范例
This commit is contained in:
@@ -11,6 +11,7 @@ layout(binding=0) uniform WorldMatrix // hgl/math/Math.h
|
||||
|
||||
mat4 modelview;
|
||||
mat4 inverse_modelview;
|
||||
mat3 normal;
|
||||
|
||||
mat4 mvp;
|
||||
mat4 inverse_mvp;
|
||||
@@ -18,11 +19,11 @@ layout(binding=0) uniform WorldMatrix // hgl/math/Math.h
|
||||
vec4 view_pos;
|
||||
vec2 canvas_resolution;
|
||||
vec2 viewport_resolution;
|
||||
} world;
|
||||
}world;
|
||||
|
||||
layout(push_constant) uniform Consts {
|
||||
mat4 local_to_world;
|
||||
} pc;
|
||||
}pc;
|
||||
|
||||
void main()
|
||||
{
|
||||
|
Reference in New Issue
Block a user