Axiom.RenderSystems.OpenGL.GLSL.GLSLLinkProgramManager.SetActiveFragmentShader C# (CSharp) 메소드

SetActiveFragmentShader() 공개 메소드

Set the active fragment shader for the next rendering state.
The active program object will be cleared. Normally called from the GLSLGpuProgram.BindProgram and UnbindProgram methods
public SetActiveFragmentShader ( GLSLGpuProgram fragmentProgram ) : void
fragmentProgram GLSLGpuProgram
리턴 void
		public void SetActiveFragmentShader( GLSLGpuProgram fragmentProgram )
		{
			if ( fragmentProgram != activeFragmentProgram )
			{
				activeFragmentProgram = fragmentProgram;

				// active link program is no longer valid
				activeLinkProgram = null;

				// change back to fixed pipeline
				Gl.glUseProgramObjectARB( 0 );
			}
		}