1.shader中的WorldMatrix增加viewport resolution数据
2.Push constant中只保留local to world数据
This commit is contained in:
@@ -16,7 +16,8 @@ layout(binding=0) uniform WorldMatrix // hgl/math/Math.h
|
||||
mat4 inverse_mvp;
|
||||
|
||||
vec4 view_pos;
|
||||
vec2 resolution;
|
||||
vec2 canvas_resolution;
|
||||
vec2 viewport_resolution;
|
||||
} world;
|
||||
|
||||
void main()
|
||||
|
Reference in New Issue
Block a user