Skip to content

Commit

Permalink
Merge pull request #20 from Simonrazer/patch-1
Browse files Browse the repository at this point in the history
Fix server_stream example
  • Loading branch information
luboslenco authored Jun 13, 2020
2 parents 1b950e4 + 1388d98 commit 5f52a59
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
Expand Up @@ -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 }
],
Expand Down

0 comments on commit 5f52a59

Please sign in to comment.