Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 440992f6 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

[Shadows] Add support for shadow attributes (7/n)

There are two types of shadows that need to be drawn, spot and ambient shadows. Each shadow
can support different colors. The GL code generates three vertex attributes for each shadow,
its position, color and shadow params(offset and distance). These can be sent using a single
glDrawElements call.

In order to support this, this change:
- adds a builder to Mesh class to support mixing and matching gl attributes
- adds support to offset VertexArrays so we can attributes for multiple
  shadows to one array
- modifies drawLayers to support drawing shadows (actual draw shadow code
  will be in a follow up cl)
- adds draw shadow state to render engine

Bug: 136561771
Test: go/wm-smoke
Test: atest librenderengine_test libgui_test SurfaceFlinger_test

Change-Id: I2e70c3dbba3266e44896d5b25e45640defe6353b
parent 0d4bd95f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment