Skip to content

Commit

Permalink
[ren.mesh_renderer] using mesh_renderer directly is once again supported
Browse files Browse the repository at this point in the history
  • Loading branch information
harrand committed Nov 16, 2023
1 parent caa4475 commit c45646a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions demo/gl/tz_mesh_demo/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "tz/core/matrix_transform.hpp"

#include "tz/ren/mesh.hpp"
#include "tz/ren/mesh2.hpp"
struct dbgui_data_t
{
bool mesh_renderer_enabled = false;
Expand All @@ -22,8 +21,8 @@ int main()
{
dbgui_init();

tz::ren::mesh_renderer2 mr;
tz::ren::mesh_renderer2::mesh m;
tz::ren::mesh_renderer mr;
tz::ren::mesh_renderer::mesh m;
m.indices = {0u, 1u, 2u};
m.vertices =
{
Expand Down
2 changes: 1 addition & 1 deletion src/tz/ren/shaders/mesh.vertex.tzsl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ resource(id = 2) const buffer camera_buffer
output(id = 0) vec2 out::texcoord;
output(id = 1) vec3 out::normal;
output(id = 2) vec3 out::colour;
output(id = 3) uvec2 out::impl_unused;
output(id = 3) vec3 out::impl_unused;
output(id = 4) texture_locator out::textures[MAX_TEX_COUNT];

void main()
Expand Down

0 comments on commit c45646a

Please sign in to comment.