Axiom.Serialization.MaterialSerializer.ParseVertexProgramRef C# (CSharp) Метод

ParseVertexProgramRef() приватный Метод

private ParseVertexProgramRef ( string parameters, MaterialScriptContext context ) : bool
parameters string
context MaterialScriptContext
Результат bool
		protected static bool ParseVertexProgramRef( string parameters, MaterialScriptContext context )
		{
			// update section
			context.section = MaterialScriptSection.ProgramRef;

			context.program = GpuProgramManager.Instance.GetByName( parameters );

			if ( context.program == null )
			{
				// unknown program
				LogParseError( context, "Invalid vertex_program_ref entry - vertex program {0} has not been defined.", parameters );
				return true;
			}

			context.isProgramShadowCaster = false;
			context.isProgramShadowReceiver = false;

			// set the vertex program for this pass
			context.pass.SetVertexProgram( parameters );

			// create params?  skip this if program is not supported
			if ( context.program.IsSupported )
			{
				context.programParams = context.pass.VertexProgramParameters;
			}

			// Return TRUE because this must be followed by a {
			return true;
		}