aboutsummaryrefslogtreecommitdiffhomepage
path: root/example
diff options
context:
space:
mode:
authorGravatar dvonbeck <dvonbeck@google.com>2016-06-16 12:39:25 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-16 12:39:25 -0700
commit8811e40850ac3310c17fe8cdaffe72817a5e317d (patch)
tree6ae3af6943a49f2edf5363120596dc57b6b05158 /example
parentc2a7c2fe89650e90199b9c41a4a9c0bec3d523a2 (diff)
Refactoring of GPU NormalMap handling out into its own class.
The purpose of this change is to refactor the handling of normal maps out of SkLightingShader, laying the groundwork to eventually allow for multiple normal sources. What this CL includes: - Created a new 'NormalMapFP', out of the existing normal map reading behavior in LightingFP. - Encapsulates this new fragment processor on a new class NormalMapSource. - Created a NormalSource abstraction that will interface with SkLightingShader. - Adapted SkLightingShader to use the normals from its NormalSource field ON THE GPU SIDE. No changes done to the CPU side yet. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2043393002 Committed: https://skia.googlesource.com/skia/+/87b0dd00cf9409c5fc990f5d0bb7c0df837f08da Committed: https://skia.googlesource.com/skia/+/a7d1e2a57aef2aa4913d4380646d60bbab761318 Review-Url: https://codereview.chromium.org/2043393002
Diffstat (limited to 'example')
0 files changed, 0 insertions, 0 deletions