整理shader文件排列
This commit is contained in:
7
shader/UBO/PushConstant3D.glsl
Normal file
7
shader/UBO/PushConstant3D.glsl
Normal file
@@ -0,0 +1,7 @@
|
||||
layout(push_constant) uniform Consts
|
||||
{
|
||||
mat4 local_to_world;
|
||||
mat3 normal;
|
||||
vec3 object_position;
|
||||
vec3 object_size;
|
||||
} pc;
|
16
shader/UBO/WorldMatrix.glsl
Normal file
16
shader/UBO/WorldMatrix.glsl
Normal file
@@ -0,0 +1,16 @@
|
||||
layout(binding=0) uniform WorldMatrix // hgl/math/Math.h
|
||||
{
|
||||
mat4 ortho;
|
||||
|
||||
mat4 projection;
|
||||
mat4 inverse_projection;
|
||||
|
||||
mat4 modelview;
|
||||
mat4 inverse_modelview;
|
||||
|
||||
mat4 mvp;
|
||||
mat4 inverse_mvp;
|
||||
|
||||
vec4 view_pos;
|
||||
vec2 resolution;
|
||||
} world;
|
Reference in New Issue
Block a user