mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #111578 from Kaleb-Reid/fix-shadow-cull-material
Use correct shadow material in some cases in Mobile
This commit is contained in:
commit
1e9d0ff925
1 changed files with 2 additions and 1 deletions
|
@ -296,7 +296,8 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
_FORCE_INLINE_ bool uses_shared_shadow_material() const {
|
_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);
|
virtual void set_code(const String &p_Code);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue