Skip to content

Commit

Permalink
fix(GlobalUniformGroup): missing property for shadow camera
Browse files Browse the repository at this point in the history
  • Loading branch information
lslzl3000 committed Jul 10, 2024
1 parent d70743b commit 1f90393
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export class GlobalUniformGroup {
this.uniformGPUBuffer.setVector3(`CameraPos`, camera.transform.worldPosition);

this.uniformGPUBuffer.setFloat(`frame`, Time.frame);
this.uniformGPUBuffer.setFloat32Array(`SH`, camera.sh);
this.uniformGPUBuffer.setFloat(`time`, Time.time);
this.uniformGPUBuffer.setFloat(`delta`, Time.delta);
this.uniformGPUBuffer.setFloat(`shadowBias`, Engine3D.setting.shadow.shadowBias);
Expand Down

0 comments on commit 1f90393

Please sign in to comment.