Skip to content

Commit

Permalink
Fix server_stream example
Browse files Browse the repository at this point in the history
  • Loading branch information
Simonrazer authored Jun 12, 2020

Verified

This commit was signed with the committer’s verified signature.
battery-staple Rohen Giralt
1 parent 1b950e4 commit 1388d98
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions server_stream/Sources/arm/LoadTrait.hx
Original file line number Diff line number Diff line change
@@ -38,12 +38,11 @@ class LoadTrait extends iron.Trait {
function makeMesh(data:String) {
// Parse received .obj data
var mesh = new ObjParser(kha.Blob.fromBytes(Bytes.ofString(data)));
var posaAr: TVertexArray = { attrib: "pos", values: mesh.posa, data: "short4norm"};
var noraAr: TVertexArray = { attrib: "nor", values: mesh.nora, data: "short2norm"};
var raw:TMeshData = {
name: "Mesh",
vertex_arrays: [
{ values: mesh.posa, attrib: "pos" },
{ values: mesh.nora, attrib: "nor" }
],
vertex_arrays: [posaAr, noraAr],
index_arrays: [
{ values: mesh.inda, material: 0 }
],

0 comments on commit 1388d98

Please sign in to comment.