24 : mRenderShadows( other.mRenderShadows )
25 , mSelectedDirectionalLight( other.mSelectedDirectionalLight )
26 , mMaximumShadowRenderingDistance( other.mMaximumShadowRenderingDistance )
27 , mShadowBias( other.mShadowBias )
28 , mShadowMapResolution( other.mShadowMapResolution )
46 mRenderShadows = element.attribute( QStringLiteral(
"shadow-rendering-enabled" ), QStringLiteral(
"0" ) ).toInt();
47 mSelectedDirectionalLight = element.attribute( QStringLiteral(
"selected-directional-light" ), QStringLiteral(
"-1" ) ).toInt();
48 mMaximumShadowRenderingDistance = element.attribute( QStringLiteral(
"max-shadow-rendering-distance" ), QStringLiteral(
"1500" ) ).toInt();
49 mShadowBias = element.attribute( QStringLiteral(
"shadow-bias" ), QStringLiteral(
"0.00001" ) ).toFloat();
50 mShadowMapResolution = element.attribute( QStringLiteral(
"shadow-map-resolution" ), QStringLiteral(
"2048" ) ).toInt();
56 element.setAttribute( QStringLiteral(
"shadow-rendering-enabled" ), mRenderShadows );
57 element.setAttribute( QStringLiteral(
"selected-directional-light" ), mSelectedDirectionalLight );
58 element.setAttribute( QStringLiteral(
"max-shadow-rendering-distance" ), mMaximumShadowRenderingDistance );
59 element.setAttribute( QStringLiteral(
"shadow-bias" ), mShadowBias );
60 element.setAttribute( QStringLiteral(
"shadow-map-resolution" ), mShadowMapResolution );
The class is used as a container of context for various read/write operations on other objects.