5namespace qml_material::sg
8class ShadowMaterial :
public QSGMaterial {
11 ~ShadowMaterial() =
default;
13 QSGMaterialShader* createShader(QSGRendererInterface::RenderMode)
const override;
14 QSGMaterialType* type()
const override;
15 int compare(
const QSGMaterial* other)
const override;
18 void init_fadeoff_texture(QQuickWindow* win);
19 auto strength_texture() -> QSGTexture*;
23 QSGTexture* m_fadeoff_texture {
nullptr };
26class ShadowShader :
public QSGMaterialShader {
30 bool updateUniformData(QSGMaterialShader::RenderState& state, QSGMaterial* newMaterial,
31 QSGMaterial* oldMaterial)
override;
33 void updateSampledImage(RenderState&,
int binding, QSGTexture** texture,
34 QSGMaterial* newMaterial, QSGMaterial*)
override;