diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2022-10-04 11:44:48 -0500 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2022-10-04 12:34:19 -0500 |
commit | 2cea42cc7faf12ad56b12c113bbb70521264c8e8 (patch) | |
tree | ae895ad9e52b96b92d60ae91fa80565fdce08c15 /gles3_builders.py | |
parent | 0056acf46fc88757cae9d9f6fe9805f0eec1cd09 (diff) | |
download | redot-engine-2cea42cc7faf12ad56b12c113bbb70521264c8e8.tar.gz |
Rename Projection `matrix` to `columns`
Diffstat (limited to 'gles3_builders.py')
-rw-r--r-- | gles3_builders.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gles3_builders.py b/gles3_builders.py index 84f11532e0..46ab1bbc03 100644 --- a/gles3_builders.py +++ b/gles3_builders.py @@ -436,7 +436,7 @@ def build_gles3_header(filename: str, include: str, class_suffix: str, header_da ) fd.write( - """_FORCE_INLINE_ void version_set_uniform(Uniforms p_uniform, const Projection& p_matrix,RID p_version,ShaderVariant p_variant""" + """_FORCE_INLINE_ void version_set_uniform(Uniforms p_uniform, const Projection& p_matrix, RID p_version, ShaderVariant p_variant""" + defvariant + """,uint64_t p_specialization=""" + str(defspec) @@ -444,13 +444,13 @@ def build_gles3_header(filename: str, include: str, class_suffix: str, header_da GLfloat matrix[16]; - for (int i=0;i<4;i++) { - for (int j=0;j<4;j++) { - matrix[i*4+j]=p_matrix.matrix[i][j]; + for (int i = 0; i < 4; i++) { + for (int j = 0; j < 4; j++) { + matrix[i * 4 + j] = p_matrix.columns[i][j]; } } - glUniformMatrix4fv(version_get_uniform(p_uniform,p_version,p_variant,p_specialization),1,false,matrix); + glUniformMatrix4fv(version_get_uniform(p_uniform, p_version, p_variant, p_specialization), 1, false, matrix); }""" ) |