Closed Tichau closed 3 years ago
I've made fixes to 0.10 branch, now it is possible to render a sprite this way:
auto hudShader = New!HUDShader(assetManager);
auto playerMaterial = createMaterial();
playerMaterial.diffuse = this.player.texture;
playerMaterial.shader = hudShader;
playerMaterial.culling = false;
auto player = createEntity2D();
player.material = playerMaterial;
player.scale = Vector3f(100, 100, 1);
player.position = Vector3f(40, 40, 0);
player.drawable = New!ShapeQuad(assetManager);
Hello, I'm new to D and wanted to make a simple game to try it, but I can't figure out how to draw a sprite. I wrote this code:
What is my mistake ?
Thanks