Skip to content

Conversation

DelinWorks
Copy link
Contributor

@DelinWorks DelinWorks commented Aug 4, 2022

Describe your changes

Added a wireframe rendering mode for mesh renderers which would ease renderer debugging.
meshRenderer->setWireframe(true); example:

untitled.mp4

Exposed the mesh transparency functions and moved it to the material class.

Moved functions that should've been contained within the material class and NOT the mesh class, moved functions are setTransparent and setForce2DQueue.

They can now be accessed from the material class directly like:

material->setTransparent(true);
material->setForce2DQueue(true);

and if this material gets applied to multiple meshes then those functions will affect the meshes with this attached material just like any other game engine.

Checklist before requesting a review

  • I have performed a self-review of my code

@DelinWorks DelinWorks marked this pull request as draft August 4, 2022 22:52
@DelinWorks DelinWorks marked this pull request as ready for review August 5, 2022 00:20
@DelinWorks DelinWorks marked this pull request as draft August 5, 2022 02:18
Added crude but okay wireframe mode for GLES and D3D11 devices.
@DelinWorks DelinWorks marked this pull request as ready for review August 5, 2022 02:55
@DelinWorks
Copy link
Contributor Author

@halx99 ready! you can merge now.

@halx99 halx99 added the enhancement New feature or request label Aug 6, 2022
@halx99 halx99 added this to the 1.0 milestone Aug 6, 2022
@halx99 halx99 merged commit 399dac7 into axmolengine:dev Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants