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

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

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

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

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

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

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