Add a shader error when trying to using hint_normal_roughness_texture in the gl_compatibility renderer

This commit is contained in:
clayjohn 2023-01-30 09:04:34 -08:00
parent 551f5191e5
commit 97ed3dcf71

View File

@ -8759,6 +8759,10 @@ Error ShaderLanguage::_parse_shader(const HashMap<StringName, FunctionInfo> &p_f
new_hint = ShaderNode::Uniform::HINT_NORMAL_ROUGHNESS_TEXTURE;
--texture_uniforms;
--texture_binding;
if (OS::get_singleton()->get_current_rendering_method() == "gl_compatibility") {
_set_error(RTR("'hint_normal_roughness_texture is not supported in gl_compatibility shaders."));
return ERR_PARSE_ERROR;
}
} break;
case TK_HINT_DEPTH_TEXTURE: {
new_hint = ShaderNode::Uniform::HINT_DEPTH_TEXTURE;