isAnimating false mergeIndex 0 alphahash_fragment #ifdef USE_ALPHAHASH \tif ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard; #endif alphamap_fragment #ifdef USE_ALPHAMAP \tdiffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g; #endif alphamap_pars_fragment #ifdef USE_ALPHAMAP \tuniform sampler2D alphaMap; #endif alphatest_fragment #ifdef USE_ALPHATEST \t#ifdef ALPHA_TO_COVERAGE \tdiffuseColor.a = smoothstep( alphaTest, alphaTest + fwidth( diffuseColor.a ), diffuseColor.a ); \tif ( diffuseColor.a == 0.0 ) discard; \t#else \tif ( diffuseColor.a < alphaTest ) discard; cut — alphatest_pars_fragment #ifdef USE_ALPHATEST \tuniform float alphaTest; #endif aomap_fragment #ifdef USE_AOMAP \tfloat ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0; \treflectedLight.indirectDiffuse *= ambientOcclusion; \t#if defined( USE_CLEARCOAT ) \t\tclearcoatSpecularIndirect *= ambientOcclcut — aomap_pars_fragment #ifdef USE_AOMAP \tuniform sampler2D aoMap; \tuniform float aoMapIntensity; #endif batching_pars_vertex #ifdef USE_BATCHING \t#if ! defined( GL_ANGLE_multi_draw ) \t#define gl_DrawID _gl_DrawID \tuniform int _gl_DrawID; \t#endif \tuniform highp sampler2D batchingTexture; \tuniform highp usampler2D batchingIdTexture; \tmat4 getBatchingMatrix( … — batching_vertex #ifdef USE_BATCHING \tmat4 batchingMatrix = getBatchingMatrix( getIndirectIndex( gl_DrawID ) ); #endif begin_vertex vec3 transformed = vec3( position ); #ifdef USE_ALPHAHASH \tvPosition = vec3( position ); #endif beginnormal_vertex vec3 objectNormal = vec3( normal ); #ifdef USE_TANGENT \tvec3 objectTangent = vec3( tangent.xyz ); #endif bsdfs float G_BlinnPhong_Implicit( ) { \treturn 0.25; } float D_BlinnPhong( const in float shininess, const in float dotNH ) { \treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess ); } vec3 BRDF_BlinnPhong( const in vec3 licut — iridescence_fragment #ifdef USE_IRIDESCENCE \tconst mat3 XYZ_TO_REC709 = mat3( \t\t 3.2404542, -0.9692660, 0.0556434, \t\t-1.5371385, 1.8760108, -0.2040259, \t\t-0.4985314, 0.0415560, 1.0572252 \t); \tvec3 Fresnel0ToIor( vec3 fresnel0 ) { \t\tvec3 sqrtF0 =cut — bumpmap_pars_fragment #ifdef USE_BUMPMAP \tuniform sampler2D bumpMap; \tuniform float bumpScale; \tvec2 dHdxy_fwd() { \t\tvec2 dSTdx = dFdx( vBumpMapUv ); \t\tvec2 dSTdy = dFdy( vBumpMapUv ); \t\tfloat Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x; \t\tfcut — clipping_planes_fragment #if NUM_CLIPPING_PLANES > 0 \tvec4 plane; \t#ifdef ALPHA_TO_COVERAGE \t\tfloat distanceToPlane, distanceGradient; \t\tfloat clipOpacity = 1.0; \t\t#pragma unroll_loop_start \t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { \t\t\tplacut — clipping_planes_pars_fragment #if NUM_CLIPPING_PLANES > 0 \tvarying vec3 vClipPosition; \tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; #endif clipping_planes_pars_vertex #if NUM_CLIPPING_PLANES > 0 \tvarying vec3 vClipPosition; #endif clipping_planes_vertex #if NUM_CLIPPING_PLANES > 0 \tvClipPosition = - mvPosition.xyz; #endif color_fragment #if defined( USE_COLOR_ALPHA ) \tdiffuseColor *= vColor; #elif defined( USE_COLOR ) \tdiffuseColor.rgb *= vColor; #endif color_pars_fragment #if defined( USE_COLOR_ALPHA ) \tvarying vec4 vColor; #elif defined( USE_COLOR ) \tvarying vec3 vColor; #endif color_pars_vertex #if defined( USE_COLOR_ALPHA ) \tvarying vec4 vColor; #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) \tvarying vec3 vColor; #endif color_vertex #if defined( USE_COLOR_ALPHA ) \tvColor = vec4( 1.0 ); #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) \tvColor = vec3( 1.0 ); #endif #ifdef USE_COLOR \tvColor *= color; #endif #ifdef USE_INST cut — common #define PI 3.141592653589793 #define PI2 6.283185307179586 #define PI_HALF 1.5707963267948966 #define RECIPROCAL_PI 0.3183098861837907 #define RECIPROCAL_PI2 0.15915494309189535 #define EPSILON 1e-6 #ifndef saturate #define saturate( a ) c… — defaultnormal_vertex vec3 transformedNormal = objectNormal; #ifdef USE_TANGENT \tvec3 transformedTangent = objectTangent; #endif #ifdef USE_BATCHING \tmat3 bm = mat3( batchingMatrix ); \ttransformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ]… — displacementmap_pars_vertex #ifdef USE_DISPLACEMENTMAP \tuniform sampler2D displacementMap; \tuniform float displacementScale; \tuniform float displacementBias; #endif displacementmap_vertex #ifdef USE_DISPLACEMENTMAP \ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); #endif emissivemap_fragment #ifdef USE_EMISSIVEMAP \tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); \t#ifdef DECODE_VIDEO_TEXTURE_EMISSIVE \t\temissiveColor = sRGBTransferEOTF( emissiveColor ); \t#endif \ttotalEmissiveRadiance *= emissiveColor.rgb; #e… — emissivemap_pars_fragment #ifdef USE_EMISSIVEMAP \tuniform sampler2D emissiveMap; #endif colorspace_fragment gl_FragColor = linearToOutputTexel( gl_FragColor );colorspace_pars_fragment vec4 LinearTransferOETF( in vec4 value ) { \treturn value; } vec4 sRGBTransferEOTF( in vec4 value ) { \treturn vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( v… — envmap_fragment #ifdef USE_ENVMAP \t#ifdef ENV_WORLDPOS \t\tvec3 cameraToFrag; \t\tif ( isOrthographic ) { \t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); \t\t} else { \t\t\tcameraToFrag = cut — envmap_common_pars_fragment #ifdef USE_ENVMAP \tuniform float envMapIntensity; \tuniform float flipEnvMap; \tuniform mat3 envMapRotation; \t#ifdef ENVMAP_TYPE_CUBE \t\tuniform samplerCube envMap; \t#else \t\tuniform sampler2D envMap; \t#endif \t #endif envmap_pars_fragment #ifdef USE_ENVMAP \tuniform float reflectivity; \t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) \t\t#define ENV_WORLDPOS \t#endif \t#ifdef ENV_WORLDPOS \t\tvarying vec3 vWorldPosition; \t\… — envmap_pars_vertex #ifdef USE_ENVMAP \t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) \t\t#define ENV_WORLDPOS \t#endif \t#ifdef ENV_WORLDPOS \t\t \t\tvarying vec3 vWorldPosition; \t#else \t\tvarying vec3 vRecut — envmap_vertex #ifdef USE_ENVMAP \t#ifdef ENV_WORLDPOS \t\tvWorldPosition = worldPosition.xyz; \t#else \t\tvec3 cameraToVertex; \t\tif ( isOrthographic ) { \t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrcut — fog_vertex #ifdef USE_FOG \tvFogDepth = - mvPosition.z; #endif fog_pars_vertex #ifdef USE_FOG \tvarying float vFogDepth; #endif fog_fragment #ifdef USE_FOG \t#ifdef FOG_EXP2 \t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); \t#else \t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); \t#endif \tgl_FragColor.rgb = mix( gl_FragColor. cut — fog_pars_fragment #ifdef USE_FOG \tuniform vec3 fogColor; \tvarying float vFogDepth; \t#ifdef FOG_EXP2 \t\tuniform float fogDensity; \t#else \t\tuniform float fogNear; \t\tuniform float fogFar; \t#endif #endif gradientmap_pars_fragment #ifdef USE_GRADIENTMAP \tuniform sampler2D gradientMap; #endif vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { \tfloat dotNL = dot( normal, lightDirection ); \tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); \t#ifdef USE_GRAD cut — lightmap_pars_fragment #ifdef USE_LIGHTMAP \tuniform sampler2D lightMap; \tuniform float lightMapIntensity; #endif lights_lambert_fragment LambertMaterial material; material.diffuseColor = diffuseColor.rgb; material.specularStrength = specularStrength; lights_lambert_pars_fragment varying vec3 vViewPosition; struct LambertMaterial { \tvec3 diffuseColor; \tfloat specularStrength; }; void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 cut — lights_pars_begin uniform bool receiveShadow; uniform vec3 ambientLightColor; #if defined( USE_LIGHT_PROBES ) \tuniform vec3 lightProbe[ 9 ]; #endif vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { \tfloat x = normal.x, y = normal.y, cut — envmap_physical_pars_fragment #ifdef USE_ENVMAP \tvec3 getIBLIrradiance( const in vec3 normal ) { \t\t#ifdef ENVMAP_TYPE_CUBE_UV \t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); \t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * w… — lights_toon_fragment ToonMaterial material; material.diffuseColor = diffuseColor.rgb; lights_toon_pars_fragment varying vec3 vViewPosition; struct ToonMaterial { \tvec3 diffuseColor; }; void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 g… — lights_phong_fragment BlinnPhongMaterial material; material.diffuseColor = diffuseColor.rgb; material.specularColor = specular; material.specularShininess = shininess; material.specularStrength = specularStrength; lights_phong_pars_fragment varying vec3 vViewPosition; struct BlinnPhongMaterial { \tvec3 diffuseColor; \tvec3 specularColor; \tfloat specularShininess; \tfloat specularStrength; }; void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometrcut — lights_physical_fragment PhysicalMaterial material; material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); float geometryRoughness = max( max( dxy.x, dxy.y ), dxcut — lights_fragment_maps #if defined( RE_IndirectDiffuse ) \t#ifdef USE_LIGHTMAP \t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); \t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; \t\tirradiance += lightMapIrradiance; \t#endif \t#if cut — lights_fragment_end #if defined( RE_IndirectDiffuse ) \tRE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); #endif #if defined( RE_IndirectSpecular ) \tRE_IndirectSpecular( racut — logdepthbuf_fragment #if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) \tgl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; #endif logdepthbuf_pars_fragment #if defined( USE_LOGARITHMIC_DEPTH_BUFFER ) \tuniform float logDepthBufFC; \tvarying float vFragDepth; \tvarying float vIsPerspective; #endif logdepthbuf_pars_vertex #ifdef USE_LOGARITHMIC_DEPTH_BUFFER \tvarying float vFragDepth; \tvarying float vIsPerspective; #endif logdepthbuf_vertex #ifdef USE_LOGARITHMIC_DEPTH_BUFFER \tvFragDepth = 1.0 + gl_Position.w; \tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); #endif map_fragment #ifdef USE_MAP \tvec4 sampledDiffuseColor = texture2D( map, vMapUv ); \t#ifdef DECODE_VIDEO_TEXTURE \t\tsampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor ); \t#endif \tdiffuseColor *= sampledDiffuseColor; #endif map_pars_fragment #ifdef USE_MAP \tuniform sampler2D map; #endif map_particle_fragment #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) \t#if defined( USE_POINTS_UV ) \t\tvec2 uv = vUv; \t#else \t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; \t#endif #endif #ifdef USE_MAP \tdiffuseColor cut — map_particle_pars_fragment #if defined( USE_POINTS_UV ) \tvarying vec2 vUv; #else \t#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) \t\tuniform mat3 uvTransform; \t#endif #endif #ifdef USE_MAP \tuniform sampler2D map; #endif #ifdef USE_ALPHAMAP \tuniform sampler2Dcut — metalnessmap_fragment float metalnessFactor = metalness; #ifdef USE_METALNESSMAP \tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); \tmetalnessFactor *= texelMetalness.b; #endif metalnessmap_pars_fragment #ifdef USE_METALNESSMAP \tuniform sampler2D metalnessMap; #endif morphinstance_vertex #ifdef USE_INSTANCING_MORPH \tfloat morphTargetInfluences[ MORPHTARGETS_COUNT ]; \tfloat morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r; \tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { \t\tmorphTacut — morphcolor_vertex #if defined( USE_MORPHCOLORS ) \tvColor *= morphTargetBaseInfluence; \tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { \t\t#if defined( USE_COLOR_ALPHA ) \t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, cut — morphnormal_vertex #ifdef USE_MORPHNORMALS \tobjectNormal *= morphTargetBaseInfluence; \tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { \t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ … — morphtarget_pars_vertex #ifdef USE_MORPHTARGETS \t#ifndef USE_INSTANCING_MORPH \t\tuniform float morphTargetBaseInfluence; \t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; \t#endif \tuniform sampler2DArray morphTargetsTexture; \tuniform ivec2 morphTcut — morphtarget_vertex #ifdef USE_MORPHTARGETS \ttransformed *= morphTargetBaseInfluence; \tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { \t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i… — normal_fragment_begin float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; #ifdef FLAT_SHADED \tvec3 fdx = dFdx( vViewPosition ); \tvec3 fdy = dFdy( vViewPosition ); \tvec3 normal = normalize( cross( fdx, fdy ) ); #else \tvec3 normal = normalize( vNormal ); \t#i… — normal_fragment_maps #ifdef USE_NORMALMAP_OBJECTSPACE \tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; \t#ifdef FLIP_SIDED \t\tnormal = - normal; \t#endif \t#ifdef DOUBLE_SIDED \t\tnormal = normal * faceDirection; \t#endif \tnormal = normalize( … — normal_pars_fragment #ifndef FLAT_SHADED \tvarying vec3 vNormal; \t#ifdef USE_TANGENT \t\tvarying vec3 vTangent; \t\tvarying vec3 vBitangent; \t#endif #endif normal_pars_vertex #ifndef FLAT_SHADED \tvarying vec3 vNormal; \t#ifdef USE_TANGENT \t\tvarying vec3 vTangent; \t\tvarying vec3 vBitangent; \t#endif #endif normal_vertex #ifndef FLAT_SHADED \tvNormal = normalize( transformedNormal ); \t#ifdef USE_TANGENT \t\tvTangent = normalize( transformedTangent ); \t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); \t#endif #endif normalmap_pars_fragment #ifdef USE_NORMALMAP \tuniform sampler2D normalMap; \tuniform vec2 normalScale; #endif #ifdef USE_NORMALMAP_OBJECTSPACE \tuniform mat3 normalMatrix; #endif #if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || definecut — clearcoat_normal_fragment_begin #ifdef USE_CLEARCOAT \tvec3 clearcoatNormal = nonPerturbedNormal; #endif clearcoat_normal_fragment_maps #ifdef USE_CLEARCOAT_NORMALMAP \tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; \tclearcoatMapN.xy *= clearcoatNormalScale; \tclearcoatNormal = normalize( tbn2 * clearcoatMapN ); #endif clearcoat_pars_fragment #ifdef USE_CLEARCOATMAP \tuniform sampler2D clearcoatMap; #endif #ifdef USE_CLEARCOAT_NORMALMAP \tuniform sampler2D clearcoatNormalMap; \tuniform vec2 clearcoatNormalScale; #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP \tuniform sampler2D clearcut — iridescence_pars_fragment #ifdef USE_IRIDESCENCEMAP \tuniform sampler2D iridescenceMap; #endif #ifdef USE_IRIDESCENCE_THICKNESSMAP \tuniform sampler2D iridescenceThicknessMap; #endif opaque_fragment #ifdef OPAQUE diffuseColor.a = 1.0; #endif #ifdef USE_TRANSMISSION diffuseColor.a *= material.transmissionAlpha; #endif gl_FragColor = vec4( outgoingLight, diffuseColor.a ); packing vec3 packNormalToRGB( const in vec3 normal ) { \treturn normalize( normal ) * 0.5 + 0.5; } vec3 unpackRGBToNormal( const in vec3 rgb ) { \treturn 2.0 * rgb.xyz - 1.0; } const float PackUpscale = 256. / 255.;const float UnpackDownscale = 25cut — premultiplied_alpha_fragment #ifdef PREMULTIPLIED_ALPHA \tgl_FragColor.rgb *= gl_FragColor.a; #endif project_vertex vec4 mvPosition = vec4( transformed, 1.0 ); #ifdef USE_BATCHING \tmvPosition = batchingMatrix * mvPosition; #endif #ifdef USE_INSTANCING \tmvPosition = instanceMatrix * mvPosition; #endif mvPosition = modelViewMatrix * mvPosition; gl_Posit cut — dithering_fragment #ifdef DITHERING \tgl_FragColor.rgb = dithering( gl_FragColor.rgb ); #endif dithering_pars_fragment #ifdef DITHERING \tvec3 dithering( vec3 color ) { \t\tfloat grid_position = rand( gl_FragCoord.xy ); \t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); \t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * cut — roughnessmap_fragment float roughnessFactor = roughness; #ifdef USE_ROUGHNESSMAP \tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); \troughnessFactor *= texelRoughness.g; #endif roughnessmap_pars_fragment #ifdef USE_ROUGHNESSMAP \tuniform sampler2D roughnessMap; #endif shadowmap_pars_fragment #if NUM_SPOT_LIGHT_COORDS > 0 \tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; #endif #if NUM_SPOT_LIGHT_MAPS > 0 \tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; #endif #ifdef USE_SHADOWMAP \t#if NUM_DIR_LIGHT_SHADOWS > 0 cut — shadowmap_pars_vertex #if NUM_SPOT_LIGHT_COORDS > 0 \tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; \tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; #endif #ifdef USE_SHADOWMAP \t#if NUM_DIR_LIGHT_SHADOWS > 0 \t\tuniform mat4 directionalShadowM cut — shadowmap_vertex #if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) \tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); \tvec4 shadowWorldPosi cut — skinbase_vertex #ifdef USE_SKINNING \tmat4 boneMatX = getBoneMatrix( skinIndex.x ); \tmat4 boneMatY = getBoneMatrix( skinIndex.y ); \tmat4 boneMatZ = getBoneMatrix( skinIndex.z ); \tmat4 boneMatW = getBoneMatrix( skinIndex.w ); #endif skinning_pars_vertex #ifdef USE_SKINNING \tuniform mat4 bindMatrix; \tuniform mat4 bindMatrixInverse; \tuniform highp sampler2D boneTexture; \tmat4 getBoneMatrix( const in float i ) { \t\tint size = textureSize( boneTexture, 0 ).x; \t\tint j = int( i ) * 4; \t… — skinning_vertex #ifdef USE_SKINNING \tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); \tvec4 skinned = vec4( 0.0 ); \tskinned += boneMatX * skinVertex * skinWeight.x; \tskinned += boneMatY * skinVertex * skinWeight.y; \tskinned += boneMatZ * skincut — skinnormal_vertex #ifdef USE_SKINNING \tmat4 skinMatrix = mat4( 0.0 ); \tskinMatrix += skinWeight.x * boneMatX; \tskinMatrix += skinWeight.y * boneMatY; \tskinMatrix += skinWeight.z * boneMatZ; \tskinMatrix += skinWeight.w * boneMatW; \tskinMatrix = bindMatcut — specularmap_fragment float specularStrength; #ifdef USE_SPECULARMAP \tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); \tspecularStrength = texelSpecular.r; #else \tspecularStrength = 1.0; #endif specularmap_pars_fragment #ifdef USE_SPECULARMAP \tuniform sampler2D specularMap; #endif tonemapping_fragment #if defined( TONE_MAPPING ) \tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); #endif transmission_fragment #ifdef USE_TRANSMISSION \tmaterial.transmission = transmission; \tmaterial.transmissionAlpha = 1.0; \tmaterial.thickness = thickness; \tmaterial.attenuationDistance = attenuationDistance; \tmaterial.attenuationColor = attenuationColor; \t#… — transmission_pars_fragment #ifdef USE_TRANSMISSION \tuniform float transmission; \tuniform float thickness; \tuniform float attenuationDistance; \tuniform vec3 attenuationColor; \t#ifdef USE_TRANSMISSIONMAP \t\tuniform sampler2D transmissionMap; \t#endif \t#ifdef UScut — uv_pars_fragment #if defined( USE_UV ) || defined( USE_ANISOTROPY ) \tvarying vec2 vUv; #endif #ifdef USE_MAP \tvarying vec2 vMapUv; #endif #ifdef USE_ALPHAMAP \tvarying vec2 vAlphaMapUv; #endif #ifdef USE_LIGHTMAP \tvarying vec2 vLightMapUv; #endif #ifdefcut — uv_pars_vertex #if defined( USE_UV ) || defined( USE_ANISOTROPY ) \tvarying vec2 vUv; #endif #ifdef USE_MAP \tuniform mat3 mapTransform; \tvarying vec2 vMapUv; #endif #ifdef USE_ALPHAMAP \tuniform mat3 alphaMapTransform; \tvarying vec2 vAlphaMapUv; #endicut — uv_vertex #if defined( USE_UV ) || defined( USE_ANISOTROPY ) \tvUv = vec3( uv, 1 ).xy; #endif #ifdef USE_MAP \tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; #endif #ifdef USE_ALPHAMAP \tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) cut — worldpos_vertex #if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 \tvec4 worldPosition = vec4( transformed, 1.0 ); \t#ifdef USE_BATCHING \t\tworldPosition = batchingMcut — vertex$h varying vec2 vUv; uniform mat3 uvTransform; void main() { \tvUv = ( uvTransform * vec3( uv, 1 ) ).xy; \tgl_Position = vec4( position.xy, 1.0, 1.0 ); } fragment$h uniform sampler2D t2D; uniform float backgroundIntensity; varying vec2 vUv; void main() { \tvec4 texColor = texture2D( t2D, vUv ); \t#ifdef DECODE_VIDEO_TEXTURE \t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.052132701 cut — vertex$g varying vec3 vWorldDirection; #include <common> void main() { \tvWorldDirection = transformDirection( position, modelMatrix ); \t#include <begin_vertex> \t#include <project_vertex> \tgl_Position.z = gl_Position.w; } fragment$g #ifdef ENVMAP_TYPE_CUBE \tuniform samplerCube envMap; #elif defined( ENVMAP_TYPE_CUBE_UV ) \tuniform sampler2D envMap; #endif uniform float flipEnvMap; uniform float backgroundBlurriness; uniform float backgroundIntensity; uniform mat3 baccut — vertex$f varying vec3 vWorldDirection; #include <common> void main() { \tvWorldDirection = transformDirection( position, modelMatrix ); \t#include <begin_vertex> \t#include <project_vertex> \tgl_Position.z = gl_Position.w; } fragment$f uniform samplerCube tCube; uniform float tFlip; uniform float opacity; varying vec3 vWorldDirection; void main() { \tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); \tgl_FragColor = texColor; \t… — vertex$e #include <common> #include <batching_pars_vertex> #include <uv_pars_vertex> #include <displacementmap_pars_vertex> #include <morphtarget_pars_vertex> #include <skinning_pars_vertex> #include <logdepthbuf_pars_vertex> #include <clipping_pla cut — fragment$e #if DEPTH_PACKING == 3200 \tuniform float opacity; #endif #include <common> #include <packing> #include <uv_pars_fragment> #include <map_pars_fragment> #include <alphamap_pars_fragment> #include <alphatest_pars_fragment> #include <alphahascut — vertex$d #define DISTANCE varying vec3 vWorldPosition; #include <common> #include <batching_pars_vertex> #include <uv_pars_vertex> #include <displacementmap_pars_vertex> #include <morphtarget_pars_vertex> #include <skinning_pars_vertex> #include <c… — fragment$d #define DISTANCE uniform vec3 referencePosition; uniform float nearDistance; uniform float farDistance; varying vec3 vWorldPosition; #include <common> #include <packing> #include <uv_pars_fragment> #include <map_pars_fragment> #include <alcut — vertex$c varying vec3 vWorldDirection; #include <common> void main() { \tvWorldDirection = transformDirection( position, modelMatrix ); \t#include <begin_vertex> \t#include <project_vertex> } fragment$c uniform sampler2D tEquirect; varying vec3 vWorldDirection; #include <common> void main() { \tvec3 direction = normalize( vWorldDirection ); \tvec2 sampleUV = equirectUv( direction ); \tgl_FragColor = texture2D( tEquirect, sampleUV ); \t#incut — vertex$b uniform float scale; attribute float lineDistance; varying float vLineDistance; #include <common> #include <uv_pars_vertex> #include <color_pars_vertex> #include <fog_pars_vertex> #include <morphtarget_pars_vertex> #include <logdepthbuf_pa cut — fragment$b uniform vec3 diffuse; uniform float opacity; uniform float dashSize; uniform float totalSize; varying float vLineDistance; #include <common> #include <color_pars_fragment> #include <uv_pars_fragment> #include <map_pars_fragment> #include <… — vertex$a #include <common> #include <batching_pars_vertex> #include <uv_pars_vertex> #include <envmap_pars_vertex> #include <color_pars_vertex> #include <fog_pars_vertex> #include <morphtarget_pars_vertex> #include <skinning_pars_vertex> #include <… — fragment$a uniform vec3 diffuse; uniform float opacity; #ifndef FLAT_SHADED \tvarying vec3 vNormal; #endif #include <common> #include <dithering_pars_fragment> #include <color_pars_fragment> #include <uv_pars_fragment> #include <map_pars_fragment> #i… — vertex$9 #define LAMBERT varying vec3 vViewPosition; #include <common> #include <batching_pars_vertex> #include <uv_pars_vertex> #include <displacementmap_pars_vertex> #include <envmap_pars_vertex> #include <color_pars_vertex> #include <fog_pars_ve cut — fragment$9 #define LAMBERT uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; #include <common> #include <packing> #include <dithering_pars_fragment> #include <color_pars_fragment> #include <uv_pars_fragment> #include <map_pars_fragm cut — vertex$8 #define MATCAP varying vec3 vViewPosition; #include <common> #include <batching_pars_vertex> #include <uv_pars_vertex> #include <color_pars_vertex> #include <displacementmap_pars_vertex> #include <fog_pars_vertex> #include <normal_pars_ver cut — fragment$8 #define MATCAP uniform vec3 diffuse; uniform float opacity; uniform sampler2D matcap; varying vec3 vViewPosition; #include <common> #include <dithering_pars_fragment> #include <color_pars_fragment> #include <uv_pars_fragment> #include <mapcut — vertex$7 #define NORMAL #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) \tvarying vec3 vViewPosition; #endif #include <common> #include <batching_pars_vertex> #include <uv_pars_vertex> #include <displaccut — fragment$7 #define NORMAL uniform float opacity; #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) \tvarying vec3 vViewPosition; #endif #include <packing> #include <uv_pars_fragment> #include <normal_pars_f cut — vertex$6 #define PHONG varying vec3 vViewPosition; #include <common> #include <batching_pars_vertex> #include <uv_pars_vertex> #include <displacementmap_pars_vertex> #include <envmap_pars_vertex> #include <color_pars_vertex> #include <fog_pars_vert cut — fragment$6 #define PHONG uniform vec3 diffuse; uniform vec3 emissive; uniform vec3 specular; uniform float shininess; uniform float opacity; #include <common> #include <packing> #include <dithering_pars_fragment> #include <color_pars_fragment> #inclucut — vertex$5 #define STANDARD varying vec3 vViewPosition; #ifdef USE_TRANSMISSION \tvarying vec3 vWorldPosition; #endif #include <common> #include <batching_pars_vertex> #include <uv_pars_vertex> #include <displacementmap_pars_vertex> #include <color_pcut — fragment$5 #define STANDARD #ifdef PHYSICAL \t#define IOR \t#define USE_SPECULAR #endif uniform vec3 diffuse; uniform vec3 emissive; uniform float roughness; uniform float metalness; uniform float opacity; #ifdef IOR \tuniform float ior; #endif #ifdecut — vertex$4 #define TOON varying vec3 vViewPosition; #include <common> #include <batching_pars_vertex> #include <uv_pars_vertex> #include <displacementmap_pars_vertex> #include <color_pars_vertex> #include <fog_pars_vertex> #include <normal_pars_verte cut — fragment$4 #define TOON uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; #include <common> #include <packing> #include <dithering_pars_fragment> #include <color_pars_fragment> #include <uv_pars_fragment> #include <map_pars_fragment cut — vertex$3 uniform float size; uniform float scale; #include <common> #include <color_pars_vertex> #include <fog_pars_vertex> #include <morphtarget_pars_vertex> #include <logdepthbuf_pars_vertex> #include <clipping_planes_pars_vertex> #ifdef USE_POIN cut — fragment$3 uniform vec3 diffuse; uniform float opacity; #include <common> #include <color_pars_fragment> #include <map_particle_pars_fragment> #include <alphatest_pars_fragment> #include <alphahash_pars_fragment> #include <fog_pars_fragment> #includecut — vertex$2 #include <common> #include <batching_pars_vertex> #include <fog_pars_vertex> #include <morphtarget_pars_vertex> #include <skinning_pars_vertex> #include <logdepthbuf_pars_vertex> #include <shadowmap_pars_vertex> void main() { \t#include <b… — fragment$2 uniform vec3 color; uniform float opacity; #include <common> #include <packing> #include <fog_pars_fragment> #include <bsdfs> #include <lights_pars_begin> #include <logdepthbuf_pars_fragment> #include <shadowmap_pars_fragment> #include <shcut — vertex$1 uniform float rotation; uniform vec2 center; #include <common> #include <uv_pars_vertex> #include <fog_pars_vertex> #include <logdepthbuf_pars_vertex> #include <clipping_planes_pars_vertex> void main() { \t#include <uv_vertex> \tvec4 mvPoscut — fragment$1 uniform vec3 diffuse; uniform float opacity; #include <common> #include <uv_pars_fragment> #include <map_pars_fragment> #include <alphamap_pars_fragment> #include <alphatest_pars_fragment> #include <alphahash_pars_fragment> #include <fog_pcut — UniformsLib.value 1.0 UniformsLib.value 0 UniformsLib.value -1 UniformsLib.value 1.5 UniformsLib.value 0.98 UniformsLib.value 1 UniformsLib.value 0.00025 UniformsLib.value 2000 UniformsLib.shadowIntensity 1 ShaderLib.value 30 ShaderLib.value 1.0 ShaderLib.value 0.0 ShaderLib.value 1