Entity Texture

Blitz3D Forums/Blitz3D Programming/Entity Texture

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

For some reason, when I apply this texture, it darkens the mesh but you can't notice the texture details.
;;Create Ground
Function CreateGround()
	
	thelevel\ground = CreateMesh()
	
	thelevel\mesh = CreateSurface(thelevel\ground)
	AddVertex(thelevel\mesh,-1,0,1)
	AddVertex(thelevel\mesh,1,0,1)
	AddVertex(thelevel\mesh,-1,0,-1)
	AddVertex(thelevel\mesh,1,0,-1)
	AddTriangle(thelevel\mesh,0,1,2)
	AddTriangle(thelevel\mesh,2,1,3)
	
	thelevel\texture = LoadTexture("images/groundtexture1.png")
	EntityTexture thelevel\ground,thelevel\texture
	ScaleEntity thelevel\ground,10,10,10

End Function