1
0
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:
clayjohn
2025-06-23 23:06:11 -07:00
parent 9283328fe7
commit 14b60f2264
11 changed files with 211 additions and 138 deletions

View File

@@ -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];