1
DotNet / Re: 2 questions regarding shaders and the entity example.
« on: September 27, 2013, 05:23:27 pm »
Bah, sorry must have forgotten. But it works now! At first i found it strange that it didn't work, but am i correct that you pass the texture like this?:
Code: [Select]
Shader shader = new Shader( "media/shaders/basic.vert", "media/shaders/basic.frag" );
shader.SetParameter( "texture", Shader.CurrentTexture );
RenderStates rState = new RenderStates( shader );
rState.Texture = texture;