Bladeren bron

UniformsGroup: Fix incorrect index in Vector4 dirty check (#33276)

Co-authored-by: Mridul <iammridul012@gamil.com>
Mridul 2 weken geleden
bovenliggende
commit
2baf31e360
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      src/renderers/common/UniformsGroup.js

+ 1 - 1
src/renderers/common/UniformsGroup.js

@@ -369,7 +369,7 @@ class UniformsGroup extends UniformBuffer {
 		const offset = uniform.offset;
 		const type = uniform.getType();
 
-		if ( a[ offset + 0 ] !== v.x || a[ offset + 1 ] !== v.y || a[ offset + 2 ] !== v.z || a[ offset + 4 ] !== v.w ) {
+		if ( a[ offset + 0 ] !== v.x || a[ offset + 1 ] !== v.y || a[ offset + 2 ] !== v.z || a[ offset + 3 ] !== v.w ) {
 
 			const b = this._getBufferForType( type );
 

粤ICP备19079148号