mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 14:13:10 +00:00
Fix alpha scissor support
This commit is contained in:
parent
fd082ec39a
commit
2fb998bfbc
@ -1952,7 +1952,7 @@ void RasterizerStorageGLES2::_update_material(Material *p_material) {
|
||||
|
||||
if (p_material->shader && p_material->shader->mode == VS::SHADER_SPATIAL) {
|
||||
if (p_material->shader->spatial.blend_mode == Shader::Spatial::BLEND_MODE_MIX &&
|
||||
(!p_material->shader->spatial.uses_alpha || p_material->shader->spatial.depth_draw_mode == Shader::Spatial::DEPTH_DRAW_ALPHA_PREPASS)) {
|
||||
(!(p_material->shader->spatial.uses_alpha && !p_material->shader->spatial.uses_alpha_scissor) || p_material->shader->spatial.depth_draw_mode == Shader::Spatial::DEPTH_DRAW_ALPHA_PREPASS)) {
|
||||
can_cast_shadow = true;
|
||||
}
|
||||
|
||||
|
@ -3178,7 +3178,7 @@ void RasterizerStorageGLES3::_update_material(Material *material) {
|
||||
|
||||
if (material->shader && material->shader->mode == VS::SHADER_SPATIAL) {
|
||||
if (material->shader->spatial.blend_mode == Shader::Spatial::BLEND_MODE_MIX &&
|
||||
(!material->shader->spatial.uses_alpha || material->shader->spatial.depth_draw_mode == Shader::Spatial::DEPTH_DRAW_ALPHA_PREPASS)) {
|
||||
(!(material->shader->spatial.uses_alpha && !material->shader->spatial.uses_alpha_scissor) || material->shader->spatial.depth_draw_mode == Shader::Spatial::DEPTH_DRAW_ALPHA_PREPASS)) {
|
||||
can_cast_shadow = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user