Axiom.Core.SceneManager.ValidatePassForRendering C# (CSharp) Метод

ValidatePassForRendering() защищенный Метод

Internal method to validate whether a Pass should be allowed to render.
Called just before a pass is about to be used for rendering a group to allow the SceneManager to omit it if required. A return value of false skips this pass.
protected ValidatePassForRendering ( Pass pass ) : bool
pass Pass
Результат bool
		protected virtual bool ValidatePassForRendering( Pass pass )
		{
			// Bypass if we're doing a texture shadow render and
			// this pass is after the first (only 1 pass needed for shadow texture)
			if ( !this.suppressShadows && this.currentViewport.ShowShadows &&
				 ( ( this.IsShadowTechniqueModulative
					 && this.illuminationStage == IlluminationRenderStage.RenderReceiverPass ) ||
				   this.illuminationStage == IlluminationRenderStage.RenderToTexture || this.suppressRenderStateChanges ) &&
				 pass.Index > 0 )
			{
				return false;
			}

			return true;
		}
SceneManager