fix: reduce shader usage
This commit is contained in:
@@ -61,6 +61,16 @@ class BlobShape : public QQuickItem {
|
||||
|
||||
virtual void cornerRadii(float out[4]) const;
|
||||
|
||||
// Outer-edge corner radii. Only the inverted rect draws an outer frame edge,
|
||||
// so the base has no outer rounding and returns zeros. Subclasses that expose
|
||||
// outer corner properties override this (order: tr, br, bl, tl).
|
||||
virtual void outerCornerRadii(float out[4]) const {
|
||||
out[0] = 0;
|
||||
out[1] = 0;
|
||||
out[2] = 0;
|
||||
out[3] = 0;
|
||||
}
|
||||
|
||||
virtual void updatePhysics() {}
|
||||
|
||||
virtual void registerWithGroup();
|
||||
@@ -88,4 +98,5 @@ class BlobShape : public QQuickItem {
|
||||
float m_cachedInvertedRadius = 0;
|
||||
float m_cachedInvertedOuter[4] = {};
|
||||
float m_cachedInvertedInner[4] = {};
|
||||
float m_cachedInvertedOuterRadii[4] = {};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user