You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Optimize vertex shader using mat3x4 to reduce bandwidth, load/store operations and ALUs
This commit is contained in:
@@ -15,8 +15,12 @@
|
||||
struct SceneData {
|
||||
mat4 projection_matrix;
|
||||
mat4 inv_projection_matrix;
|
||||
mat4 inv_view_matrix;
|
||||
mat4 view_matrix;
|
||||
mat3x4 inv_view_matrix;
|
||||
mat3x4 view_matrix;
|
||||
|
||||
#ifdef USE_DOUBLE_PRECISION
|
||||
vec4 inv_view_precision;
|
||||
#endif
|
||||
|
||||
// only used for multiview
|
||||
mat4 projection_matrix_view[MAX_VIEWS];
|
||||
|
||||
Reference in New Issue
Block a user