ahiemstra created this revision.
ahiemstra added a reviewer: Kirigami.
Herald added a project: Kirigami.
Herald added a subscriber: plasma-devel.
ahiemstra requested review of this revision.

REVISION SUMMARY
  This adds a ShadowedRectangle item, which is a rectangle with a shadow.
  It uses a custom shader that draws the rectangle and the shadow below it
  using distance fields, which has significantly better performance compared
  to the DropShadow effect.
  
  This is a first step to moving more of AbstractCard and related items to
  C++ code. Other bits will include a ShadowedImage item and moving actual
  card code to C++.

TEST PLAN
  TBD

REPOSITORY
  R169 Kirigami

BRANCH
  shadowrect_distancefield

REVISION DETAIL
  https://phabricator.kde.org/D27984

AFFECTED FILES
  src/CMakeLists.txt
  src/kirigamiplugin.cpp
  src/scenegraph/header_desktop.glsl
  src/scenegraph/header_desktop_core.glsl
  src/scenegraph/header_es.glsl
  src/scenegraph/shaders.qrc
  src/scenegraph/shadowedrectangle.frag
  src/scenegraph/shadowedrectangle.vert
  src/scenegraph/shadowedrectangle_core.frag
  src/scenegraph/shadowedrectangle_core.vert
  src/scenegraph/shadowedrectanglematerial.cpp
  src/scenegraph/shadowedrectanglematerial.h
  src/scenegraph/shadowedrectanglenode.cpp
  src/scenegraph/shadowedrectanglenode.h
  src/shadowedrectangle.cpp
  src/shadowedrectangle.h

To: ahiemstra, #kirigami
Cc: plasma-devel, fbampaloukas, GB_2, domson, dkardarakos, ngraham, apol, 
ahiemstra, davidedmundson, mart

Reply via email to