mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-01-02 21:32:17 +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.rotation = instance.rotation;
|
||||
batch.meshBatch.material.blendMode = instance.o.blending;
|
||||
batch.meshBatch.material.mainPass.setPassName("overlay");
|
||||
batch.meshBatch.material.color.load(instance.color);
|
||||
batch.meshBatch.shadersChanged = true;
|
||||
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.addNormals();
|
||||
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.blendMode = Alpha;
|
||||
var billboardShader = new Billboard();
|
||||
mat.mainPass.addShader(billboardShader);
|
||||
var mb = new MeshBatch(prim, mat, this.scene);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue