Return definesWithShadows -138,6 +148,8 namespace SceneUtilĭefinesWithoutShadows = " 0.0 " ĭefinesWithoutShadows = " 0 " MShadowSettings - > setComputeNearFarModeOverride ( osg : : CullSettings : : COMPUTE_NEAR_FAR_USING_PRIMITIVES ) -117,6 +125,8 namespace SceneUtilĭefinesWithShadows = std : : to_string ( Settings : : Manager : : getFloat ( " normal offset distance ", " Shadows " ) ) ĭefinesWithShadows = Settings : : Manager : : getFloat ( " maximum shadow map distance ", " Shadows " ) > 0 ? " 1 " : " 0 " If ( Settings : : Manager : : getBool ( " compute tight scene bounds ", " Shadows " ) ) MShadowSettings - > setMinimumShadowMapNearFarRatio ( Settings : : Manager : : getFloat ( " minimum lispsm near far ratio ", " Shadows " ) ) MShadowTechnique - > setShadowFadeStart ( maximumShadowMapDistance * shadowFadeStart ) MShadowSettings - > setMaximumShadowMapDistance ( maximumShadowMapDistance ) MShadowSettings - > setBaseShadowTextureUnit ( 8 - numberOfShadowMapsPerLight ) Ĭonst float maximumShadowMapDistance = Settings : : Manager : : getFloat ( " maximum shadow map distance ", " Shadows " ) Ĭonst float shadowFadeStart = std : : min ( std : : max ( 0.f, Settings : : Manager : : getFloat ( " shadow fade start ", " Shadows " ) ), 1.f ) MShadowSettings - > setNumShadowMapsPerLight ( numberOfShadowMapsPerLight )
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |