Skip to content

Commit

Permalink
Simplify shader (#29397)
Browse files Browse the repository at this point in the history
  • Loading branch information
WestLangley authored Sep 17, 2024
1 parent 324c9db commit 2208e81
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/renderers/shaders/ShaderLib/sprite.glsl.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ void main() {
#include <uv_vertex>
vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );
vec4 mvPosition = modelViewMatrix[ 3 ];
vec2 scale;
scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );
scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );
vec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) );
#ifndef USE_SIZEATTENUATION
Expand Down

0 comments on commit 2208e81

Please sign in to comment.