Axiom.RenderSystems.OpenGLES.GLESRenderSystem.SetDepthBias C# (CSharp) Method

SetDepthBias() public method

public SetDepthBias ( float constantBias, float slopeScaleBias ) : void
constantBias float
slopeScaleBias float
return void
		public override void SetDepthBias( float constantBias, float slopeScaleBias )
		{
			if ( constantBias != 0 || slopeScaleBias != 0 )
			{
				OpenGL.Enable( All.PolygonOffsetFill );
				GLESConfig.GlCheckError( this );
				OpenGL.PolygonOffset( -slopeScaleBias, -constantBias );
				GLESConfig.GlCheckError( this );
			}
			else
			{
				OpenGL.Disable( All.PolygonOffsetFill );
				GLESConfig.GlCheckError( this );
			}
		}
GLESRenderSystem