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