Skip to content

Commit

Permalink
Fix NormalMaterial with ThinInstances (#16028)
Browse files Browse the repository at this point in the history
* Fix oneffecterrorobs

* Fix NormalMaterial with ThinInstances
  • Loading branch information
sebavan authored Dec 31, 2024
1 parent 3aa6009 commit c64e9c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/dev/materials/src/normal/normalMaterial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class NormalMaterialDefines extends MaterialDefines {
public NUM_BONE_INFLUENCERS = 0;
public BonesPerMesh = 0;
public INSTANCES = false;
public THIN_INSTANCES = false;
public LIGHTING = false;
public IMAGEPROCESSINGPOSTPROCESS = false;
public SKIPFINALCOLORCLAMP = false;
Expand Down Expand Up @@ -191,7 +192,7 @@ export class NormalMaterial extends PushMaterial {
PrepareDefinesForLights(scene, mesh, defines, false, this._maxSimultaneousLights, this._disableLighting);

// Values that need to be evaluated on every frame
PrepareDefinesForFrameBoundValues(scene, engine, this, defines, useInstances ? true : false);
PrepareDefinesForFrameBoundValues(scene, engine, this, defines, useInstances ? true : false, null, subMesh.getRenderingMesh().hasThinInstances);

defines.LIGHTING = !this._disableLighting;

Expand Down

0 comments on commit c64e9c6

Please sign in to comment.