Skip to content

Commit

Permalink
Grl webgl ubo fix (#15981)
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandCsibrei authored Dec 11, 2024
1 parent babc94d commit 1009afd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export class GreasedLinePluginMaterial extends MaterialPluginBase implements IGr
override bindForSubMesh(uniformBuffer: UniformBuffer) {
if (this._cameraFacing) {
uniformBuffer.updateMatrix("grl_projection", this._scene.getProjectionMatrix());
uniformBuffer.updateMatrix("viewProjection", this._scene.getTransformMatrix());
!this._isGLSL(this._material.shaderLanguage) && uniformBuffer.updateMatrix("viewProjection", this._scene.getTransformMatrix());

const resolutionLineWidth = TmpVectors.Vector4[0];
resolutionLineWidth.x = this._aspect;
Expand Down

0 comments on commit 1009afd

Please sign in to comment.