EEVEE Next: Tag shadowmap usage for transparent object volumes #104580

Merged
Miguel Pozo merged 31 commits from pragma37/blender:pull-eevee-shadows-tag-usage-transparent into main 2023-03-08 13:51:35 +01:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 074e2dc0e6 - Show all commits

View File

@ -13,9 +13,9 @@ void main()
ObjectBounds bounds = bounds_buf[drw_ResourceID];
interp.P = bounds.bounding_corners[0].xyz;
interp.P += bounds.bounding_corners[1].xyz * pos.x;
interp.P += bounds.bounding_corners[2].xyz * pos.y;
interp.P += bounds.bounding_corners[3].xyz * pos.z;
interp.P += bounds.bounding_corners[1].xyz * max(0, pos.x);
interp.P += bounds.bounding_corners[2].xyz * max(0, pos.y);
interp.P += bounds.bounding_corners[3].xyz * max(0, pos.z);
interp.vP = point_world_to_view(interp.P);
gl_Position = point_world_to_ndc(interp.P);