mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-27 13:11:42 +00:00
Dump DtsTexture, fix the blending bugs and shit, fix triggers
This commit is contained in:
parent
ab58664ced
commit
5229a55f68
1 changed files with 5 additions and 2 deletions
|
|
@ -291,6 +291,7 @@ class ParticleManager {
|
||||||
particleShader.scale = instance.scale;
|
particleShader.scale = instance.scale;
|
||||||
particleShader.rotation = instance.rotation;
|
particleShader.rotation = instance.rotation;
|
||||||
batch.meshBatch.material.blendMode = instance.o.blending;
|
batch.meshBatch.material.blendMode = instance.o.blending;
|
||||||
|
batch.meshBatch.material.mainPass.setPassName("overlay");
|
||||||
batch.meshBatch.material.color.load(instance.color);
|
batch.meshBatch.material.color.load(instance.color);
|
||||||
batch.meshBatch.shadersChanged = true;
|
batch.meshBatch.shadersChanged = true;
|
||||||
batch.meshBatch.setScale(instance.scale);
|
batch.meshBatch.setScale(instance.scale);
|
||||||
|
|
@ -321,9 +322,11 @@ class ParticleManager {
|
||||||
prim.uvs = [new UV(0, 0), new UV(0, 1), new UV(1, 0), new UV(1, 1)];
|
prim.uvs = [new UV(0, 0), new UV(0, 1), new UV(1, 0), new UV(1, 1)];
|
||||||
prim.addNormals();
|
prim.addNormals();
|
||||||
var mat = Material.create(particleData.texture);
|
var mat = Material.create(particleData.texture);
|
||||||
mat.mainPass.addShader(new h3d.shader.pbr.PropsValues(1, 0, 0, 1));
|
// matshader.texture = mat.texture;
|
||||||
|
mat.mainPass.enableLights = false;
|
||||||
|
mat.mainPass.setPassName("overlay");
|
||||||
|
// mat.mainPass.addShader(new h3d.shader.pbr.PropsValues(1, 0, 0, 1));
|
||||||
mat.texture.wrap = Wrap.Repeat;
|
mat.texture.wrap = Wrap.Repeat;
|
||||||
mat.blendMode = Alpha;
|
|
||||||
var billboardShader = new Billboard();
|
var billboardShader = new Billboard();
|
||||||
mat.mainPass.addShader(billboardShader);
|
mat.mainPass.addShader(billboardShader);
|
||||||
var mb = new MeshBatch(prim, mat, this.scene);
|
var mb = new MeshBatch(prim, mat, this.scene);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue