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

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

private ParseShadowReceiverVertexProgramRef ( string parameters, MaterialScriptContext context ) : bool
parameters string
context MaterialScriptContext
Результат bool
		protected static bool ParseShadowReceiverVertexProgramRef( 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 shadow_receiver_vertex_program_ref entry - vertex program {0} has not been defined.", parameters );
				return true;
			}

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

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

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

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