mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Use correct shadow material in some cases in Mobile
This commit is contained in:
parent
cb7cd815ee
commit
8a8bd02860
1 changed files with 2 additions and 1 deletions
|
@ -296,7 +296,8 @@ public:
|
|||
}
|
||||
|
||||
_FORCE_INLINE_ bool uses_shared_shadow_material() const {
|
||||
return !uses_particle_trails && !writes_modelview_or_projection && !uses_vertex && !uses_discard && !uses_depth_prepass_alpha && !uses_alpha_clip && !uses_alpha_antialiasing && !uses_world_coordinates && !wireframe && !stencil_enabled;
|
||||
bool backface_culling = cull_mode == RS::CULL_MODE_BACK;
|
||||
return !uses_particle_trails && !writes_modelview_or_projection && !uses_vertex && !uses_discard && !uses_depth_prepass_alpha && !uses_alpha_clip && !uses_alpha_antialiasing && !uses_point_size && !uses_world_coordinates && !wireframe && !stencil_enabled && backface_culling;
|
||||
}
|
||||
|
||||
virtual void set_code(const String &p_Code);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue