Axiom.Graphics.Pass.SetShadowCasterVertexProgram C# (CSharp) Method

SetShadowCasterVertexProgram() public method

public SetShadowCasterVertexProgram ( string name ) : void
name string
return void
		public void SetShadowCasterVertexProgram( string name )
		{
			// turn off vertex programs when the name is set to null
			if ( name.Length == 0 )
			{
				shadowCasterVertexProgramUsage = null;
			}
			else
			{
				// create a new usage object
				if ( !this.HasShadowCasterVertexProgram )
				{
					shadowCasterVertexProgramUsage = new GpuProgramUsage( GpuProgramType.Vertex );
				}

				shadowCasterVertexProgramUsage.ProgramName = name;
			}

			// needs recompilation
			_parent.NotifyNeedsRecompile();
		}