/// <summary> /// /// </summary> /// <param name="matrix"></param> public override void ApplyMatrix(Matrix4 matrix) { if (this.Attributes.ContainsKey("position")) { var position = (BufferAttribute<float>)this.Attributes["position"]; matrix.ApplyToVector3Array(position.Array); position.needsUpdate = true; } if (this.Attributes.ContainsKey("normal")) { var normal = (BufferAttribute<float>)this.Attributes["normal"]; var normalMatrix = new Matrix3().GetNormalMatrix(matrix); normalMatrix.ApplyToVector3Array(normal.Array); normal.needsUpdate = true; } }