mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add shader baker to project exporter.
Metal Support contributed by Migeran (https://migeran.com) and Stuart Carnie. Co-authored-by: Stuart Carnie <stuart.carnie@gmail.com> Co-authored-by: Gergely Kis <gergely.kis@migeran.com>
This commit is contained in:
parent
99f5a3d665
commit
5a30a7e7cd
112 changed files with 5786 additions and 4203 deletions
|
|
@ -682,6 +682,10 @@ void BaseMaterial3D::finish_shaders() {
|
|||
}
|
||||
|
||||
void BaseMaterial3D::_update_shader() {
|
||||
if (!_is_initialized()) {
|
||||
_mark_ready();
|
||||
}
|
||||
|
||||
MaterialKey mk = _compute_key();
|
||||
if (mk == current_key) {
|
||||
return; //no update required in the end
|
||||
|
|
@ -3644,8 +3648,6 @@ BaseMaterial3D::BaseMaterial3D(bool p_orm) :
|
|||
flags[FLAG_USE_TEXTURE_REPEAT] = true;
|
||||
|
||||
current_key.invalid_key = 1;
|
||||
|
||||
_mark_initialized(callable_mp(this, &BaseMaterial3D::_queue_shader_change), Callable());
|
||||
}
|
||||
|
||||
BaseMaterial3D::~BaseMaterial3D() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue