Merge pull request #50140 from Calinou/debug-overdraw-lower-opacity-3.x
Decrease opacity of the overdraw debug draw mode (3.x)
This commit is contained in:
commit
19359a9654
2 changed files with 4 additions and 2 deletions
|
@ -4129,7 +4129,8 @@ void RasterizerSceneGLES2::initialize() {
|
|||
//default material and shader
|
||||
|
||||
default_overdraw_shader = storage->shader_create();
|
||||
storage->shader_set_code(default_overdraw_shader, "shader_type spatial;\nrender_mode blend_add,unshaded;\n void fragment() { ALBEDO=vec3(0.4,0.8,0.8); ALPHA=0.2; }");
|
||||
// Use relatively low opacity so that more "layers" of overlapping objects can be distinguished.
|
||||
storage->shader_set_code(default_overdraw_shader, "shader_type spatial;\nrender_mode blend_add,unshaded;\n void fragment() { ALBEDO=vec3(0.4,0.8,0.8); ALPHA=0.1; }");
|
||||
default_overdraw_material = storage->material_create();
|
||||
storage->material_set_shader(default_overdraw_material, default_overdraw_shader);
|
||||
}
|
||||
|
|
|
@ -4924,7 +4924,8 @@ void RasterizerSceneGLES3::initialize() {
|
|||
//default material and shader
|
||||
|
||||
default_overdraw_shader = storage->shader_create();
|
||||
storage->shader_set_code(default_overdraw_shader, "shader_type spatial;\nrender_mode blend_add,unshaded;\n void fragment() { ALBEDO=vec3(0.4,0.8,0.8); ALPHA=0.2; }");
|
||||
// Use relatively low opacity so that more "layers" of overlapping objects can be distinguished.
|
||||
storage->shader_set_code(default_overdraw_shader, "shader_type spatial;\nrender_mode blend_add,unshaded;\n void fragment() { ALBEDO=vec3(0.4,0.8,0.8); ALPHA=0.1; }");
|
||||
default_overdraw_material = storage->material_create();
|
||||
storage->material_set_shader(default_overdraw_material, default_overdraw_shader);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue