New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

three

Package Overview
Dependencies
Maintainers
2
Versions
309
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

three - npm Package Compare versions

Comparing version
0.183.1
to
0.183.2
+1
-1
package.json
{
"name": "three",
"version": "0.183.1",
"version": "0.183.2",
"description": "JavaScript 3D library",

@@ -5,0 +5,0 @@ "type": "module",

@@ -11,3 +11,3 @@ import UniformNode, { uniform } from '../core/UniformNode.js';

import { Compatibility, IntType, LessCompare, NearestFilter, UnsignedIntType } from '../../constants.js';
import { Compatibility, GreaterCompare, GreaterEqualCompare, IntType, LessCompare, LessEqualCompare, NearestFilter, UnsignedIntType } from '../../constants.js';

@@ -409,4 +409,6 @@ import { Texture } from '../../textures/Texture.js';

if ( this.value.compareFunction === null || this.value.compareFunction === LessCompare ) {
const compareFunction = texture.compareFunction;
if ( compareFunction === null || compareFunction === LessCompare || compareFunction === LessEqualCompare || compareFunction === GreaterCompare || compareFunction === GreaterEqualCompare ) {
compareStepNode = this.compareNode;

@@ -418,3 +420,3 @@

warnOnce( 'TSL: Only "LessCompare" is supported for depth texture comparison fallback.' );
warnOnce( 'TSL: Only "LessCompare", "LessEqualCompare", "GreaterCompare" and "GreaterEqualCompare" are supported for depth texture comparison fallback.' );

@@ -565,4 +567,14 @@ }

snippet = step( expression( compareStepSnippet, 'float' ), expression( snippet, nodeType ) ).build( builder, nodeType );
const compareFunction = texture.compareFunction;
if ( compareFunction === GreaterCompare || compareFunction === GreaterEqualCompare ) {
snippet = step( expression( snippet, nodeType ), expression( compareStepSnippet, 'float' ) ).build( builder, nodeType );
} else {
snippet = step( expression( compareStepSnippet, 'float' ), expression( snippet, nodeType ) ).build( builder, nodeType );
}
}

@@ -569,0 +581,0 @@

@@ -14,3 +14,3 @@ import ShadowBaseNode, { shadowPositionWorld } from './ShadowBaseNode.js';

import { screenCoordinate } from '../display/ScreenNode.js';
import { GreaterEqualCompare, HalfFloatType, LessEqualCompare, LinearFilter, NearestFilter, PCFShadowMap, PCFSoftShadowMap, RGFormat, VSMShadowMap } from '../../constants.js';
import { Compatibility, GreaterEqualCompare, HalfFloatType, LessEqualCompare, LinearFilter, NearestFilter, PCFShadowMap, PCFSoftShadowMap, RGFormat, VSMShadowMap } from '../../constants.js';
import { renderGroup } from '../core/UniformGroupNode.js';

@@ -424,4 +424,5 @@ import { viewZToLogarithmicDepth } from '../display/ViewportDepthNode.js';

const shadowMapType = renderer.shadowMap.type;
const hasTextureCompare = renderer.hasCompatibility( Compatibility.TEXTURE_COMPARE );
if ( shadowMapType === PCFShadowMap || shadowMapType === PCFSoftShadowMap ) {
if ( ( shadowMapType === PCFShadowMap || shadowMapType === PCFSoftShadowMap ) && hasTextureCompare ) {

@@ -428,0 +429,0 @@ depthTexture.minFilter = LinearFilter;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display