Skip to content

Commit

Permalink
Add check for force_vertex_shading in the material
Browse files Browse the repository at this point in the history
  • Loading branch information
ywmaa committed May 24, 2024
1 parent ec6efad commit abf2332
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gles3/storage/material_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2925,6 +2925,10 @@ void SceneShaderData::set_code(const String &p_code) {

actions.render_mode_flags["unshaded"] = &unshaded;
actions.render_mode_flags["vertex_lighting"] = &vertex_lighting;
bool force_vertex_lighting = GLOBAL_GET("rendering/shading/overrides/force_vertex_shading");
if (force_vertex_lighting) {
actions.render_mode_flags["vertex_lighting"] = true;
}
actions.render_mode_flags["wireframe"] = &wireframe;
actions.render_mode_flags["particle_trails"] = &uses_particle_trails;
actions.render_mode_flags["world_vertex_coords"] = &uses_world_coordinates;
Expand Down

0 comments on commit abf2332

Please sign in to comment.