~ Changed Pipelines
(Default2DPipeline: Has Lights, Post-ProcessingEffects, etc.) (Basic2DPipeline: Simple Color and Texture stuff, thats it)
This commit is contained in:
parent
1ed03fec3f
commit
5d4b360b05
23 changed files with 243 additions and 59 deletions
|
|
@ -458,7 +458,7 @@ namespace SM.OGL.Shaders
|
|||
/// <param name="texture"></param>
|
||||
public void SetTexture(TextureBase texture)
|
||||
{
|
||||
if (Parent != null) SetTexture(texture, Parent.NextTexture++);
|
||||
if (Parent != null) SetTexture(texture, Parent.NextTexture);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -468,6 +468,7 @@ namespace SM.OGL.Shaders
|
|||
/// <param name="texturePos"></param>
|
||||
public void SetTexture(TextureBase texture, int texturePos)
|
||||
{
|
||||
Parent.NextTexture = texturePos + 1;
|
||||
GL.ActiveTexture(TextureUnit.Texture0 + texturePos);
|
||||
GL.BindTexture(TextureTarget.Texture2D, texture);
|
||||
SetUniform1(texturePos);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue