Skip to content

Commit d8dcddb

Browse files
committed
Updated builds.
1 parent bb42b15 commit d8dcddb

9 files changed

Lines changed: 489 additions & 10 deletions

build/three.cjs

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28850,6 +28850,77 @@ class CanvasTexture extends Texture {
2885028850

2885128851
}
2885228852

28853+
/**
28854+
* Creates a texture from an HTML element.
28855+
*
28856+
* This is almost the same as the base texture class, except that it sets {@link Texture#needsUpdate}
28857+
* to `true` immediately and listens for the parent canvas's paint events to trigger updates.
28858+
*
28859+
* @augments Texture
28860+
*/
28861+
class HTMLTexture extends Texture {
28862+
28863+
/**
28864+
* Constructs a new texture.
28865+
*
28866+
* @param {HTMLElement} [element] - The HTML element.
28867+
* @param {number} [mapping=Texture.DEFAULT_MAPPING] - The texture mapping.
28868+
* @param {number} [wrapS=ClampToEdgeWrapping] - The wrapS value.
28869+
* @param {number} [wrapT=ClampToEdgeWrapping] - The wrapT value.
28870+
* @param {number} [magFilter=LinearFilter] - The mag filter value.
28871+
* @param {number} [minFilter=LinearMipmapLinearFilter] - The min filter value.
28872+
* @param {number} [format=RGBAFormat] - The texture format.
28873+
* @param {number} [type=UnsignedByteType] - The texture type.
28874+
* @param {number} [anisotropy=Texture.DEFAULT_ANISOTROPY] - The anisotropy value.
28875+
*/
28876+
constructor( element, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) {
28877+
28878+
super( element, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
28879+
28880+
/**
28881+
* This flag can be used for type testing.
28882+
*
28883+
* @type {boolean}
28884+
* @readonly
28885+
* @default true
28886+
*/
28887+
this.isHTMLTexture = true;
28888+
this.generateMipmaps = false;
28889+
28890+
this.needsUpdate = true;
28891+
28892+
const parent = element ? element.parentNode : null;
28893+
28894+
if ( parent !== null && 'requestPaint' in parent ) {
28895+
28896+
parent.onpaint = () => {
28897+
28898+
this.needsUpdate = true;
28899+
28900+
};
28901+
28902+
parent.requestPaint();
28903+
28904+
}
28905+
28906+
}
28907+
28908+
dispose() {
28909+
28910+
const parent = this.image ? this.image.parentNode : null;
28911+
28912+
if ( parent !== null && 'onpaint' in parent ) {
28913+
28914+
parent.onpaint = null;
28915+
28916+
}
28917+
28918+
super.dispose();
28919+
28920+
}
28921+
28922+
}
28923+
2885328924
/**
2885428925
* This class can be used to automatically save the depth information of a
2885528926
* rendering into a texture.
@@ -70577,6 +70648,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
7057770648

7057870649
const _imageDimensions = new Vector2();
7057970650
const _videoTextures = new WeakMap();
70651+
const _htmlTextures = new Set();
7058070652
let _canvas;
7058170653

7058270654
const _sources = new WeakMap(); // maps WebglTexture objects to instances of Source
@@ -70900,6 +70972,12 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
7090070972

7090170973
}
7090270974

70975+
if ( texture.isHTMLTexture ) {
70976+
70977+
_htmlTextures.delete( texture );
70978+
70979+
}
70980+
7090370981
}
7090470982

7090570983
function onRenderTargetDispose( event ) {
@@ -71813,6 +71891,59 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
7181371891

7181471892
}
7181571893

71894+
} else if ( texture.isHTMLTexture ) {
71895+
71896+
if ( 'texElement2D' in _gl ) {
71897+
71898+
const canvas = _gl.canvas;
71899+
71900+
// Ensure the canvas supports HTML-in-Canvas and the element is a child.
71901+
if ( ! canvas.hasAttribute( 'layoutsubtree' ) ) {
71902+
71903+
canvas.setAttribute( 'layoutsubtree', 'true' );
71904+
71905+
}
71906+
71907+
if ( image.parentNode !== canvas ) {
71908+
71909+
canvas.appendChild( image );
71910+
71911+
// Register and set up a shared paint callback for all HTMLTextures.
71912+
_htmlTextures.add( texture );
71913+
71914+
canvas.onpaint = ( event ) => {
71915+
71916+
const changed = event.changedElements;
71917+
71918+
for ( const t of _htmlTextures ) {
71919+
71920+
if ( changed.includes( t.image ) ) {
71921+
71922+
t.needsUpdate = true;
71923+
71924+
}
71925+
71926+
}
71927+
71928+
};
71929+
71930+
canvas.requestPaint();
71931+
return;
71932+
71933+
}
71934+
71935+
const level = 0;
71936+
const internalFormat = _gl.RGBA;
71937+
const srcFormat = _gl.RGBA;
71938+
const srcType = _gl.UNSIGNED_BYTE;
71939+
71940+
_gl.texElementImage2D( _gl.TEXTURE_2D, level, internalFormat, srcFormat, srcType, image );
71941+
_gl.texParameteri( _gl.TEXTURE_2D, _gl.TEXTURE_MIN_FILTER, _gl.LINEAR );
71942+
_gl.texParameteri( _gl.TEXTURE_2D, _gl.TEXTURE_WRAP_S, _gl.CLAMP_TO_EDGE );
71943+
_gl.texParameteri( _gl.TEXTURE_2D, _gl.TEXTURE_WRAP_T, _gl.CLAMP_TO_EDGE );
71944+
71945+
}
71946+
7181671947
} else {
7181771948

7181871949
// regular Texture (image, video, canvas)
@@ -79141,6 +79272,7 @@ exports.GreaterEqualStencilFunc = GreaterEqualStencilFunc;
7914179272
exports.GreaterStencilFunc = GreaterStencilFunc;
7914279273
exports.GridHelper = GridHelper;
7914379274
exports.Group = Group;
79275+
exports.HTMLTexture = HTMLTexture;
7914479276
exports.HalfFloatType = HalfFloatType;
7914579277
exports.HemisphereLight = HemisphereLight;
7914679278
exports.HemisphereLightHelper = HemisphereLightHelper;

build/three.core.js

Lines changed: 72 additions & 1 deletion
Large diffs are not rendered by default.

build/three.core.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/three.module.js

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: MIT
55
*/
66
import { Matrix3, Vector2, Color, mergeUniforms, Vector3, CubeUVReflectionMapping, Mesh, BoxGeometry, ShaderMaterial, BackSide, cloneUniforms, Matrix4, ColorManagement, SRGBTransfer, PlaneGeometry, FrontSide, getUnlitUniformColorSpace, IntType, warn, HalfFloatType, UnsignedByteType, FloatType, RGBAFormat, Plane, CubeReflectionMapping, CubeRefractionMapping, BufferGeometry, OrthographicCamera, PerspectiveCamera, NoToneMapping, MeshBasicMaterial, error, NoBlending, WebGLRenderTarget, BufferAttribute, LinearSRGBColorSpace, LinearFilter, CubeTexture, LinearMipmapLinearFilter, CubeCamera, EquirectangularReflectionMapping, EquirectangularRefractionMapping, warnOnce, Uint32BufferAttribute, Uint16BufferAttribute, DataArrayTexture, Vector4, DepthTexture, Float32BufferAttribute, RawShaderMaterial, CustomToneMapping, NeutralToneMapping, AgXToneMapping, ACESFilmicToneMapping, CineonToneMapping, ReinhardToneMapping, LinearToneMapping, Data3DTexture, GreaterEqualCompare, LessEqualCompare, Texture, GLSL3, VSMShadowMap, PCFShadowMap, AddOperation, MixOperation, MultiplyOperation, LinearTransfer, UniformsUtils, DoubleSide, NormalBlending, TangentSpaceNormalMap, ObjectSpaceNormalMap, Layers, RGFormat, RG11_EAC_Format, RED_GREEN_RGTC2_Format, MeshDepthMaterial, MeshDistanceMaterial, PCFSoftShadowMap, DepthFormat, NearestFilter, CubeDepthTexture, UnsignedIntType, Frustum, LessEqualDepth, ReverseSubtractEquation, SubtractEquation, AddEquation, OneMinusConstantAlphaFactor, ConstantAlphaFactor, OneMinusConstantColorFactor, ConstantColorFactor, OneMinusDstAlphaFactor, OneMinusDstColorFactor, OneMinusSrcAlphaFactor, OneMinusSrcColorFactor, DstAlphaFactor, DstColorFactor, SrcAlphaSaturateFactor, SrcAlphaFactor, SrcColorFactor, OneFactor, ZeroFactor, NotEqualDepth, GreaterDepth, GreaterEqualDepth, EqualDepth, LessDepth, AlwaysDepth, NeverDepth, CullFaceNone, CullFaceBack, CullFaceFront, CustomBlending, MultiplyBlending, SubtractiveBlending, AdditiveBlending, ReversedDepthFuncs, MinEquation, MaxEquation, MirroredRepeatWrapping, ClampToEdgeWrapping, RepeatWrapping, LinearMipmapNearestFilter, NearestMipmapLinearFilter, NearestMipmapNearestFilter, NotEqualCompare, GreaterCompare, EqualCompare, LessCompare, AlwaysCompare, NeverCompare, NoColorSpace, DepthStencilFormat, getByteLength, UnsignedInt248Type, UnsignedShortType, createElementNS, UnsignedShort4444Type, UnsignedShort5551Type, UnsignedInt5999Type, UnsignedInt101111Type, ByteType, ShortType, AlphaFormat, RGBFormat, RedFormat, RedIntegerFormat, RGIntegerFormat, RGBAIntegerFormat, RGB_S3TC_DXT1_Format, RGBA_S3TC_DXT1_Format, RGBA_S3TC_DXT3_Format, RGBA_S3TC_DXT5_Format, RGB_PVRTC_4BPPV1_Format, RGB_PVRTC_2BPPV1_Format, RGBA_PVRTC_4BPPV1_Format, RGBA_PVRTC_2BPPV1_Format, RGB_ETC1_Format, RGB_ETC2_Format, RGBA_ETC2_EAC_Format, R11_EAC_Format, SIGNED_R11_EAC_Format, SIGNED_RG11_EAC_Format, RGBA_ASTC_4x4_Format, RGBA_ASTC_5x4_Format, RGBA_ASTC_5x5_Format, RGBA_ASTC_6x5_Format, RGBA_ASTC_6x6_Format, RGBA_ASTC_8x5_Format, RGBA_ASTC_8x6_Format, RGBA_ASTC_8x8_Format, RGBA_ASTC_10x5_Format, RGBA_ASTC_10x6_Format, RGBA_ASTC_10x8_Format, RGBA_ASTC_10x10_Format, RGBA_ASTC_12x10_Format, RGBA_ASTC_12x12_Format, RGBA_BPTC_Format, RGB_BPTC_SIGNED_Format, RGB_BPTC_UNSIGNED_Format, RED_RGTC1_Format, SIGNED_RED_RGTC1_Format, SIGNED_RED_GREEN_RGTC2_Format, ExternalTexture, EventDispatcher, ArrayCamera, WebXRController, RAD2DEG, DataTexture, createCanvasElement, SRGBColorSpace, REVISION, log, WebGLCoordinateSystem, probeAsync } from './three.core.js';
7-
export { AdditiveAnimationBlendMode, AlwaysStencilFunc, AmbientLight, AnimationAction, AnimationClip, AnimationLoader, AnimationMixer, AnimationObjectGroup, AnimationUtils, ArcCurve, ArrowHelper, AttachedBindMode, Audio, AudioAnalyser, AudioContext, AudioListener, AudioLoader, AxesHelper, BasicDepthPacking, BasicShadowMap, BatchedMesh, BezierInterpolant, Bone, BooleanKeyframeTrack, Box2, Box3, Box3Helper, BoxHelper, BufferGeometryLoader, Cache, Camera, CameraHelper, CanvasTexture, CapsuleGeometry, CatmullRomCurve3, CircleGeometry, Clock, ColorKeyframeTrack, Compatibility, CompressedArrayTexture, CompressedCubeTexture, CompressedTexture, CompressedTextureLoader, ConeGeometry, Controls, CubeTextureLoader, CubicBezierCurve, CubicBezierCurve3, CubicInterpolant, CullFaceFrontBack, Curve, CurvePath, CylinderGeometry, Cylindrical, DataTextureLoader, DataUtils, DecrementStencilOp, DecrementWrapStencilOp, DefaultLoadingManager, DetachedBindMode, DirectionalLight, DirectionalLightHelper, DiscreteInterpolant, DodecahedronGeometry, DynamicCopyUsage, DynamicDrawUsage, DynamicReadUsage, EdgesGeometry, EllipseCurve, EqualStencilFunc, Euler, ExtrudeGeometry, FileLoader, Float16BufferAttribute, Fog, FogExp2, FramebufferTexture, FrustumArray, GLBufferAttribute, GLSL1, GreaterEqualStencilFunc, GreaterStencilFunc, GridHelper, Group, HemisphereLight, HemisphereLightHelper, IcosahedronGeometry, ImageBitmapLoader, ImageLoader, ImageUtils, IncrementStencilOp, IncrementWrapStencilOp, InstancedBufferAttribute, InstancedBufferGeometry, InstancedInterleavedBuffer, InstancedMesh, Int16BufferAttribute, Int32BufferAttribute, Int8BufferAttribute, InterleavedBuffer, InterleavedBufferAttribute, Interpolant, InterpolateBezier, InterpolateDiscrete, InterpolateLinear, InterpolateSmooth, InterpolationSamplingMode, InterpolationSamplingType, InvertStencilOp, KeepStencilOp, KeyframeTrack, LOD, LatheGeometry, LessEqualStencilFunc, LessStencilFunc, Light, LightProbe, Line, Line3, LineBasicMaterial, LineCurve, LineCurve3, LineDashedMaterial, LineLoop, LineSegments, LinearInterpolant, LinearMipMapLinearFilter, LinearMipMapNearestFilter, Loader, LoaderUtils, LoadingManager, LoopOnce, LoopPingPong, LoopRepeat, MOUSE, Material, MaterialBlending, MaterialLoader, MathUtils, Matrix2, MeshLambertMaterial, MeshMatcapMaterial, MeshNormalMaterial, MeshPhongMaterial, MeshPhysicalMaterial, MeshStandardMaterial, MeshToonMaterial, NearestMipMapLinearFilter, NearestMipMapNearestFilter, NeverStencilFunc, NoNormalPacking, NormalAnimationBlendMode, NormalGAPacking, NormalRGPacking, NotEqualStencilFunc, NumberKeyframeTrack, Object3D, ObjectLoader, OctahedronGeometry, Path, PlaneHelper, PointLight, PointLightHelper, Points, PointsMaterial, PolarGridHelper, PolyhedronGeometry, PositionalAudio, PropertyBinding, PropertyMixer, QuadraticBezierCurve, QuadraticBezierCurve3, Quaternion, QuaternionKeyframeTrack, QuaternionLinearInterpolant, RGBADepthPacking, RGBDepthPacking, RGBIntegerFormat, RGDepthPacking, Ray, Raycaster, RectAreaLight, RenderTarget, RenderTarget3D, ReplaceStencilOp, RingGeometry, Scene, ShadowMaterial, Shape, ShapeGeometry, ShapePath, ShapeUtils, Skeleton, SkeletonHelper, SkinnedMesh, Source, Sphere, SphereGeometry, Spherical, SphericalHarmonics3, SplineCurve, SpotLight, SpotLightHelper, Sprite, SpriteMaterial, StaticCopyUsage, StaticDrawUsage, StaticReadUsage, StereoCamera, StreamCopyUsage, StreamDrawUsage, StreamReadUsage, StringKeyframeTrack, TOUCH, TetrahedronGeometry, TextureLoader, TextureUtils, Timer, TimestampQuery, TorusGeometry, TorusKnotGeometry, Triangle, TriangleFanDrawMode, TriangleStripDrawMode, TrianglesDrawMode, TubeGeometry, UVMapping, Uint8BufferAttribute, Uint8ClampedBufferAttribute, Uniform, UniformsGroup, VectorKeyframeTrack, VideoFrameTexture, VideoTexture, WebGL3DRenderTarget, WebGLArrayRenderTarget, WebGPUCoordinateSystem, WireframeGeometry, WrapAroundEnding, ZeroCurvatureEnding, ZeroSlopeEnding, ZeroStencilOp, getConsoleFunction, setConsoleFunction } from './three.core.js';
7+
export { AdditiveAnimationBlendMode, AlwaysStencilFunc, AmbientLight, AnimationAction, AnimationClip, AnimationLoader, AnimationMixer, AnimationObjectGroup, AnimationUtils, ArcCurve, ArrowHelper, AttachedBindMode, Audio, AudioAnalyser, AudioContext, AudioListener, AudioLoader, AxesHelper, BasicDepthPacking, BasicShadowMap, BatchedMesh, BezierInterpolant, Bone, BooleanKeyframeTrack, Box2, Box3, Box3Helper, BoxHelper, BufferGeometryLoader, Cache, Camera, CameraHelper, CanvasTexture, CapsuleGeometry, CatmullRomCurve3, CircleGeometry, Clock, ColorKeyframeTrack, Compatibility, CompressedArrayTexture, CompressedCubeTexture, CompressedTexture, CompressedTextureLoader, ConeGeometry, Controls, CubeTextureLoader, CubicBezierCurve, CubicBezierCurve3, CubicInterpolant, CullFaceFrontBack, Curve, CurvePath, CylinderGeometry, Cylindrical, DataTextureLoader, DataUtils, DecrementStencilOp, DecrementWrapStencilOp, DefaultLoadingManager, DetachedBindMode, DirectionalLight, DirectionalLightHelper, DiscreteInterpolant, DodecahedronGeometry, DynamicCopyUsage, DynamicDrawUsage, DynamicReadUsage, EdgesGeometry, EllipseCurve, EqualStencilFunc, Euler, ExtrudeGeometry, FileLoader, Float16BufferAttribute, Fog, FogExp2, FramebufferTexture, FrustumArray, GLBufferAttribute, GLSL1, GreaterEqualStencilFunc, GreaterStencilFunc, GridHelper, Group, HTMLTexture, HemisphereLight, HemisphereLightHelper, IcosahedronGeometry, ImageBitmapLoader, ImageLoader, ImageUtils, IncrementStencilOp, IncrementWrapStencilOp, InstancedBufferAttribute, InstancedBufferGeometry, InstancedInterleavedBuffer, InstancedMesh, Int16BufferAttribute, Int32BufferAttribute, Int8BufferAttribute, InterleavedBuffer, InterleavedBufferAttribute, Interpolant, InterpolateBezier, InterpolateDiscrete, InterpolateLinear, InterpolateSmooth, InterpolationSamplingMode, InterpolationSamplingType, InvertStencilOp, KeepStencilOp, KeyframeTrack, LOD, LatheGeometry, LessEqualStencilFunc, LessStencilFunc, Light, LightProbe, Line, Line3, LineBasicMaterial, LineCurve, LineCurve3, LineDashedMaterial, LineLoop, LineSegments, LinearInterpolant, LinearMipMapLinearFilter, LinearMipMapNearestFilter, Loader, LoaderUtils, LoadingManager, LoopOnce, LoopPingPong, LoopRepeat, MOUSE, Material, MaterialBlending, MaterialLoader, MathUtils, Matrix2, MeshLambertMaterial, MeshMatcapMaterial, MeshNormalMaterial, MeshPhongMaterial, MeshPhysicalMaterial, MeshStandardMaterial, MeshToonMaterial, NearestMipMapLinearFilter, NearestMipMapNearestFilter, NeverStencilFunc, NoNormalPacking, NormalAnimationBlendMode, NormalGAPacking, NormalRGPacking, NotEqualStencilFunc, NumberKeyframeTrack, Object3D, ObjectLoader, OctahedronGeometry, Path, PlaneHelper, PointLight, PointLightHelper, Points, PointsMaterial, PolarGridHelper, PolyhedronGeometry, PositionalAudio, PropertyBinding, PropertyMixer, QuadraticBezierCurve, QuadraticBezierCurve3, Quaternion, QuaternionKeyframeTrack, QuaternionLinearInterpolant, RGBADepthPacking, RGBDepthPacking, RGBIntegerFormat, RGDepthPacking, Ray, Raycaster, RectAreaLight, RenderTarget, RenderTarget3D, ReplaceStencilOp, RingGeometry, Scene, ShadowMaterial, Shape, ShapeGeometry, ShapePath, ShapeUtils, Skeleton, SkeletonHelper, SkinnedMesh, Source, Sphere, SphereGeometry, Spherical, SphericalHarmonics3, SplineCurve, SpotLight, SpotLightHelper, Sprite, SpriteMaterial, StaticCopyUsage, StaticDrawUsage, StaticReadUsage, StereoCamera, StreamCopyUsage, StreamDrawUsage, StreamReadUsage, StringKeyframeTrack, TOUCH, TetrahedronGeometry, TextureLoader, TextureUtils, Timer, TimestampQuery, TorusGeometry, TorusKnotGeometry, Triangle, TriangleFanDrawMode, TriangleStripDrawMode, TrianglesDrawMode, TubeGeometry, UVMapping, Uint8BufferAttribute, Uint8ClampedBufferAttribute, Uniform, UniformsGroup, VectorKeyframeTrack, VideoFrameTexture, VideoTexture, WebGL3DRenderTarget, WebGLArrayRenderTarget, WebGPUCoordinateSystem, WireframeGeometry, WrapAroundEnding, ZeroCurvatureEnding, ZeroSlopeEnding, ZeroStencilOp, getConsoleFunction, setConsoleFunction } from './three.core.js';
88

99
function WebGLAnimation() {
1010

@@ -10975,6 +10975,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
1097510975

1097610976
const _imageDimensions = new Vector2();
1097710977
const _videoTextures = new WeakMap();
10978+
const _htmlTextures = new Set();
1097810979
let _canvas;
1097910980

1098010981
const _sources = new WeakMap(); // maps WebglTexture objects to instances of Source
@@ -11298,6 +11299,12 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
1129811299

1129911300
}
1130011301

11302+
if ( texture.isHTMLTexture ) {
11303+
11304+
_htmlTextures.delete( texture );
11305+
11306+
}
11307+
1130111308
}
1130211309

1130311310
function onRenderTargetDispose( event ) {
@@ -12211,6 +12218,59 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
1221112218

1221212219
}
1221312220

12221+
} else if ( texture.isHTMLTexture ) {
12222+
12223+
if ( 'texElement2D' in _gl ) {
12224+
12225+
const canvas = _gl.canvas;
12226+
12227+
// Ensure the canvas supports HTML-in-Canvas and the element is a child.
12228+
if ( ! canvas.hasAttribute( 'layoutsubtree' ) ) {
12229+
12230+
canvas.setAttribute( 'layoutsubtree', 'true' );
12231+
12232+
}
12233+
12234+
if ( image.parentNode !== canvas ) {
12235+
12236+
canvas.appendChild( image );
12237+
12238+
// Register and set up a shared paint callback for all HTMLTextures.
12239+
_htmlTextures.add( texture );
12240+
12241+
canvas.onpaint = ( event ) => {
12242+
12243+
const changed = event.changedElements;
12244+
12245+
for ( const t of _htmlTextures ) {
12246+
12247+
if ( changed.includes( t.image ) ) {
12248+
12249+
t.needsUpdate = true;
12250+
12251+
}
12252+
12253+
}
12254+
12255+
};
12256+
12257+
canvas.requestPaint();
12258+
return;
12259+
12260+
}
12261+
12262+
const level = 0;
12263+
const internalFormat = _gl.RGBA;
12264+
const srcFormat = _gl.RGBA;
12265+
const srcType = _gl.UNSIGNED_BYTE;
12266+
12267+
_gl.texElementImage2D( _gl.TEXTURE_2D, level, internalFormat, srcFormat, srcType, image );
12268+
_gl.texParameteri( _gl.TEXTURE_2D, _gl.TEXTURE_MIN_FILTER, _gl.LINEAR );
12269+
_gl.texParameteri( _gl.TEXTURE_2D, _gl.TEXTURE_WRAP_S, _gl.CLAMP_TO_EDGE );
12270+
_gl.texParameteri( _gl.TEXTURE_2D, _gl.TEXTURE_WRAP_T, _gl.CLAMP_TO_EDGE );
12271+
12272+
}
12273+
1221412274
} else {
1221512275

1221612276
// regular Texture (image, video, canvas)

build/three.module.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)