Skip to content

Commit

Permalink
Fix: depthCompare
Browse files Browse the repository at this point in the history
DepthCompare cant work properly
  • Loading branch information
Codeboy-cn committed Aug 18, 2024
1 parent c154fe1 commit 9d8ae6b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/materials/Material.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ export class Material {

public set depthCompare(value: GPUCompareFunction) {
this._defaultSubShader.depthCompare = value;
for (let item of this._shader.passShader.values()) {
for (let s of item) {
s.depthCompare = value;
}
}
}


Expand Down Expand Up @@ -137,7 +142,7 @@ export class Material {
this._defaultSubShader.setDefine("USE_BILLBOARD", value);
}

public get topology(){
public get topology() {
return this._defaultSubShader.topology;
}

Expand Down

0 comments on commit 9d8ae6b

Please sign in to comment.