Update iron
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -144,9 +144,9 @@ class Project {
|
||||
var raw = {
|
||||
name: "Tessellated",
|
||||
vertex_arrays: [
|
||||
{ values: mesh.posa, attrib: "pos" },
|
||||
{ values: mesh.nora, attrib: "nor" },
|
||||
{ values: mesh.texa, attrib: "tex" }
|
||||
{ values: mesh.posa, attrib: "pos", data: "short4norm" },
|
||||
{ values: mesh.nora, attrib: "nor", data: "short2norm" },
|
||||
{ values: mesh.texa, attrib: "tex", data: "short2norm" }
|
||||
],
|
||||
index_arrays: [
|
||||
{ values: mesh.inda, material: 0 }
|
||||
|
||||
@@ -94,13 +94,13 @@ class ImportMesh {
|
||||
var raw: TMeshData = null;
|
||||
if (UITrait.inst.worktab.position == SpaceScene) {
|
||||
raw = rawMesh(mesh);
|
||||
if (mesh.texa != null) raw.vertex_arrays.push({ values: mesh.texa, attrib: "tex" });
|
||||
if (mesh.texa != null) raw.vertex_arrays.push({ values: mesh.texa, attrib: "tex", data: "short2norm" });
|
||||
}
|
||||
else {
|
||||
raw = rawMesh(mesh);
|
||||
if (mesh.texa == null) equirectUnwrap(mesh);
|
||||
raw.vertex_arrays.push({ values: mesh.texa, attrib: "tex" });
|
||||
if (mesh.cola != null) raw.vertex_arrays.push({ values: mesh.cola, attrib: "col" });
|
||||
raw.vertex_arrays.push({ values: mesh.texa, attrib: "tex", data: "short2norm" });
|
||||
if (mesh.cola != null) raw.vertex_arrays.push({ values: mesh.cola, attrib: "col", data: "short4norm" });
|
||||
}
|
||||
|
||||
new MeshData(raw, function(md: MeshData) {
|
||||
@@ -175,7 +175,7 @@ class ImportMesh {
|
||||
equirectUnwrap(mesh);
|
||||
}
|
||||
var raw = rawMesh(mesh);
|
||||
raw.vertex_arrays.push({ values: mesh.texa, attrib: "tex" });
|
||||
raw.vertex_arrays.push({ values: mesh.texa, attrib: "tex", data: "short2norm" });
|
||||
|
||||
new MeshData(raw, function(md: MeshData) {
|
||||
|
||||
@@ -215,8 +215,8 @@ class ImportMesh {
|
||||
return {
|
||||
name: mesh.name,
|
||||
vertex_arrays: [
|
||||
{ values: mesh.posa, attrib: "pos" },
|
||||
{ values: mesh.nora, attrib: "nor" }
|
||||
{ values: mesh.posa, attrib: "pos", data: "short4norm" },
|
||||
{ values: mesh.nora, attrib: "nor", data: "short2norm" }
|
||||
],
|
||||
index_arrays: [
|
||||
{ values: mesh.inda, material: 0 }
|
||||
|
||||
@@ -25,7 +25,7 @@ class MakePaint {
|
||||
con_paint.data.color_writes_green = [true, true, true, true];
|
||||
con_paint.data.color_writes_blue = [true, true, true, true];
|
||||
con_paint.data.color_writes_alpha = [true, true, true, true];
|
||||
con_paint.allow_vcols = Context.paintObject.data.geom.cols != null;
|
||||
con_paint.allow_vcols = Context.paintObject.data.geom.cols;
|
||||
|
||||
var vert = con_paint.make_vert();
|
||||
var frag = con_paint.make_frag();
|
||||
|
||||
@@ -52,9 +52,9 @@ class MeshUtil {
|
||||
var raw: TMeshData = {
|
||||
name: Context.paintObject.name,
|
||||
vertex_arrays: [
|
||||
{ values: va0, attrib: "pos" },
|
||||
{ values: va1, attrib: "nor" },
|
||||
{ values: va2, attrib: "tex" }
|
||||
{ values: va0, attrib: "pos", data: "short4norm" },
|
||||
{ values: va1, attrib: "nor", data: "short2norm" },
|
||||
{ values: va2, attrib: "tex", data: "short2norm" }
|
||||
],
|
||||
index_arrays: [
|
||||
{ values: ia, material: 0 }
|
||||
|
||||
Reference in New Issue
Block a user