diff --git a/packages/dev/core/src/Materials/GreasedLine/greasedLinePluginMaterial.ts b/packages/dev/core/src/Materials/GreasedLine/greasedLinePluginMaterial.ts index 0aa52752849..50fd7a2f731 100644 --- a/packages/dev/core/src/Materials/GreasedLine/greasedLinePluginMaterial.ts +++ b/packages/dev/core/src/Materials/GreasedLine/greasedLinePluginMaterial.ts @@ -371,7 +371,6 @@ export class GreasedLinePluginMaterial extends MaterialPluginBase implements IGr vec3 grlNext = grl_nextAndCounters.xyz; grlCounters = grl_nextAndCounters.w; - mat4 grlMatrix = viewProjection * finalWorld; vec4 grlFinalPosition = grlMatrix * vec4( positionUpdated , 1.0 ); vec4 grlPrevPos = grlMatrix * vec4( grlPrevious + grlPositionOffset, 1.0 ); diff --git a/packages/dev/core/src/Shaders/greasedLine.vertex.fx b/packages/dev/core/src/Shaders/greasedLine.vertex.fx index 6e917757f6c..e6942c53277 100644 --- a/packages/dev/core/src/Shaders/greasedLine.vertex.fx +++ b/packages/dev/core/src/Shaders/greasedLine.vertex.fx @@ -42,11 +42,7 @@ void main() { vec3 grlNext = grl_nextAndCounters.xyz; grlCounters = grl_nextAndCounters.w; - #ifdef INSTANCES - mat4 grlMatrix = viewProjection * finalWorld ; - #else - mat4 grlMatrix = viewProjection * world ; - #endif + mat4 grlMatrix = viewProjection * finalWorld ; vec3 grlPositionOffset = grl_offsets; vec4 grlFinalPosition = grlMatrix * vec4( position + grlPositionOffset , 1.0 );