Skip to content

Commit

Permalink
[ts][threejs] Initialize meshes with parent shadows options
Browse files Browse the repository at this point in the history
  • Loading branch information
davidetan committed Nov 27, 2024
1 parent 64d0d71 commit fe7fe8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spine-ts/spine-threejs/src/SkeletonMesh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ export class SkeletonMesh extends THREE.Object3D {
private nextBatch () {
if (this.batches.length == this.nextBatchIndex) {
let batch = new MeshBatcher(MeshBatcher.MAX_VERTICES, this.materialFactory, this.twoColorTint);
batch.castShadow = this._castShadow;
batch.receiveShadow = this._receiveShadow;
this.add(batch);
this.batches.push(batch);
}
Expand Down

0 comments on commit fe7fe8d

Please sign in to comment.