mirror of
https://github.com/godotengine/godot
synced 2024-11-02 08:53:46 +00:00
Merge pull request #43347 from bruvzg/ubsan_uninit3
Fix uninitialised variables in the BaseMaterial3D.
This commit is contained in:
commit
65eb05384a
1 changed files with 2 additions and 0 deletions
|
@ -2637,6 +2637,8 @@ BaseMaterial3D::BaseMaterial3D(bool p_orm) :
|
|||
orm = p_orm;
|
||||
// Initialize to the same values as the shader
|
||||
shading_mode = SHADING_MODE_PER_PIXEL;
|
||||
transparency = TRANSPARENCY_DISABLED;
|
||||
alpha_antialiasing_mode = ALPHA_ANTIALIASING_OFF;
|
||||
set_albedo(Color(1.0, 1.0, 1.0, 1.0));
|
||||
set_specular(0.5);
|
||||
set_roughness(1.0);
|
||||
|
|
Loading…
Reference in a new issue