+1
-1
| { | ||
| "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
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
36491016
0.01%518464
077
1.32%