Sign in to follow this  
Raab314159

Problem rendering point sprite

Recommended Posts

Hi, The following code only displays a black square as a point sprite, without the texture. Any idea why the texture is not displayed? *********************************************************** device.BeginScene(); device.SetTexture(0, TextureLoader.FromFile(device,"bullet.jpg")); device.Material = material; device.VertexFormat = VertexFormats.Position | VertexFormats.PointSize | VertexFormats.Diffuse; device.DrawUserPrimitives(PrimitiveType.PointList, 1, crosshairs); device.EndScene();

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this