Co-authored-by: Samuel Rigaud <srigaud@duodisplay.com>
@@ -73,6 +73,9 @@
"requireReturnDescription": false,
"requireParamType": true
}
+ ],
+ "eqeqeq": [
+ "error"
]
@@ -120,13 +120,13 @@ class InstanceNode extends Node {
update( /*frame*/ ) {
- if ( this.instanceMatrix.usage !== DynamicDrawUsage && this.buffer != null && this.instanceMatrix.version !== this.buffer.version ) {
+ if ( this.instanceMatrix.usage !== DynamicDrawUsage && this.buffer !== null && this.instanceMatrix.version !== this.buffer.version ) {
this.buffer.version = this.instanceMatrix.version;
- if ( this.instanceColor && this.instanceColor.usage !== DynamicDrawUsage && this.bufferColor != null && this.instanceColor.version !== this.bufferColor.version ) {
+ if ( this.instanceColor && this.instanceColor.usage !== DynamicDrawUsage && this.bufferColor !== null && this.instanceColor.version !== this.bufferColor.version ) {
this.bufferColor.version = this.instanceColor.version;
@@ -73,7 +73,7 @@ const viewportFrontSideTexture = /*@__PURE__*/ viewportMipTexture();
const getTransmissionSample = /*@__PURE__*/ Fn( ( [ fragCoord, roughness, ior ], { material } ) => {
- const vTexture = material.side == BackSide ? viewportBackSideTexture : viewportFrontSideTexture;
+ const vTexture = material.side === BackSide ? viewportBackSideTexture : viewportFrontSideTexture;
const transmissionSample = vTexture.sample( fragCoord );
//const transmissionSample = viewportMipTexture( fragCoord );
@@ -269,7 +269,7 @@ class WebGPUAttributeUtils {
let format;
- if ( itemSize == 1 ) {
+ if ( itemSize === 1 ) {
format = typeArraysToVertexFormatPrefixForItemSize1.get( ArrayType );
@@ -52,7 +52,7 @@ class WebXRDepthSensing {
const texProps = renderer.properties.get( texture );
texProps.__webglTexture = depthData.texture;
- if ( ( depthData.depthNear != renderState.depthNear ) || ( depthData.depthFar != renderState.depthFar ) ) {
+ if ( ( depthData.depthNear !== renderState.depthNear ) || ( depthData.depthFar !== renderState.depthFar ) ) {
this.depthNear = depthData.depthNear;
this.depthFar = depthData.depthFar;