rhodonite 0.27.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/VERSION-FILE +1 -1
- package/dist/esm/effekseer/EffekseerComponent.js +3 -3
- package/dist/esm/foundation/components/Camera/CameraComponent.js +1 -1
- package/dist/esm/foundation/components/Light/LightComponent.d.ts +14 -0
- package/dist/esm/foundation/components/Light/LightComponent.js +1 -1
- package/dist/esm/foundation/components/Mesh/MeshComponent.js +1 -1
- package/dist/esm/foundation/components/MeshRenderer/MeshRendererComponent.d.ts +33 -5
- package/dist/esm/foundation/components/MeshRenderer/MeshRendererComponent.js +1 -1
- package/dist/esm/foundation/components/Physics/PhysicsComponent.js +1 -1
- package/dist/esm/foundation/components/Raymarching/RaymarchingSdfEvaluator.js +1 -1
- package/dist/esm/foundation/components/SceneGraph/SceneGraphComponent.js +1 -1
- package/dist/esm/foundation/components/Shape/ShapeComponent.js +1 -1
- package/dist/esm/foundation/components/Skeletal/AnimationRetarget/GlobalRetargetReverse.js +1 -1
- package/dist/esm/foundation/components/Skeletal/SkeletalComponent.js +1 -1
- package/dist/esm/foundation/components/Transform/TransformComponent.js +1 -1
- package/dist/esm/foundation/constraints/VrmRollConstraint.js +1 -1
- package/dist/esm/foundation/core/Component.js +1 -1
- package/dist/esm/foundation/core/Config.d.ts +15 -0
- package/dist/esm/foundation/core/Config.js +1 -1
- package/dist/esm/foundation/core/GlobalDataRepository.d.ts +3 -3
- package/dist/esm/foundation/core/GlobalDataRepository.js +1 -1
- package/dist/esm/foundation/definitions/RenderBackend.d.ts +21 -0
- package/dist/esm/foundation/definitions/RenderBackend.js +1 -0
- package/dist/esm/foundation/definitions/ShaderSemantics.js +1 -1
- package/dist/esm/foundation/definitions/ShaderSemanticsInfo.d.ts +1 -0
- package/dist/esm/foundation/definitions/ShaderSemanticsInfo.js +1 -1
- package/dist/esm/foundation/definitions/VertexAttribute.js +1 -1
- package/dist/esm/foundation/definitions/index.d.ts +1 -1
- package/dist/esm/foundation/definitions/index.js +1 -1
- package/dist/esm/foundation/exporter/Gltf2Exporter.d.ts +6 -0
- package/dist/esm/foundation/exporter/Gltf2Exporter.js +1 -1
- package/dist/esm/foundation/geometry/Frustum.js +1 -1
- package/dist/esm/foundation/geometry/Mesh.d.ts +33 -68
- package/dist/esm/foundation/geometry/Mesh.js +1 -1
- package/dist/esm/foundation/geometry/Primitive.d.ts +1 -1
- package/dist/esm/foundation/geometry/Primitive.js +1 -1
- package/dist/esm/foundation/geometry/shapes/Cylinder.js +1 -1
- package/dist/esm/foundation/geometry/shapes/Joint.js +1 -1
- package/dist/esm/foundation/gizmos/AABBGizmo.js +1 -1
- package/dist/esm/foundation/gizmos/CapsuleColliderGizmo.js +1 -1
- package/dist/esm/foundation/gizmos/Gizmo.js +1 -1
- package/dist/esm/foundation/gizmos/JointGizmo.js +1 -1
- package/dist/esm/foundation/gizmos/LightGizmo.d.ts +108 -10
- package/dist/esm/foundation/gizmos/LightGizmo.js +1 -1
- package/dist/esm/foundation/gizmos/LocatorGizmo.js +1 -1
- package/dist/esm/foundation/gizmos/RotationGizmo.js +1 -1
- package/dist/esm/foundation/gizmos/ScaleGizmo.js +1 -1
- package/dist/esm/foundation/gizmos/ShapeGizmo.js +1 -1
- package/dist/esm/foundation/gizmos/SphereColliderGizmo.js +1 -1
- package/dist/esm/foundation/gizmos/TranslationGizmo.js +1 -1
- package/dist/esm/foundation/helpers/BloomHelper.js +1 -1
- package/dist/esm/foundation/helpers/GaussianBlurHelper.js +1 -1
- package/dist/esm/foundation/helpers/MaterialHelper.d.ts +2 -0
- package/dist/esm/foundation/helpers/MaterialHelper.js +1 -1
- package/dist/esm/foundation/helpers/Shadow/PointShadowMap.js +1 -1
- package/dist/esm/foundation/helpers/Shadow/ShadowCasterFilter.d.ts +8 -0
- package/dist/esm/foundation/helpers/Shadow/ShadowCasterFilter.js +1 -0
- package/dist/esm/foundation/helpers/Shadow/ShadowDirectionalAutoFit.d.ts +28 -0
- package/dist/esm/foundation/helpers/Shadow/ShadowDirectionalAutoFit.js +1 -0
- package/dist/esm/foundation/helpers/Shadow/ShadowMap.js +1 -1
- package/dist/esm/foundation/helpers/Shadow/ShadowSpotLightZNear.d.ts +8 -0
- package/dist/esm/foundation/helpers/Shadow/ShadowSpotLightZNear.js +1 -0
- package/dist/esm/foundation/helpers/Shadow/ShadowSystem.d.ts +1 -29
- package/dist/esm/foundation/helpers/Shadow/ShadowSystem.js +1 -1
- package/dist/esm/foundation/helpers/materials/createClassicUberMaterial.js +1 -1
- package/dist/esm/foundation/helpers/materials/createEnvConstantScreenSpaceMaterial.d.ts +21 -0
- package/dist/esm/foundation/helpers/materials/createEnvConstantScreenSpaceMaterial.js +1 -0
- package/dist/esm/foundation/helpers/materials/createGaussianBlurForEncodedDepthMaterial.js +1 -1
- package/dist/esm/foundation/helpers/materials/createGaussianBlurMaterial.js +1 -1
- package/dist/esm/foundation/helpers/materials/createMotionVectorMaterial.js +1 -1
- package/dist/esm/foundation/helpers/materials/createNodeBasedRaymarchingMaterials.js +1 -1
- package/dist/esm/foundation/helpers/materials/createPbrUberMaterial.js +1 -1
- package/dist/esm/foundation/helpers/materials/createTemporalAAResolveMaterial.js +1 -1
- package/dist/esm/foundation/helpers/materials/index.d.ts +1 -0
- package/dist/esm/foundation/helpers/materials/index.js +1 -1
- package/dist/esm/foundation/helpers/materials/nodeBasedMaterialCommon.js +1 -1
- package/dist/esm/foundation/importer/DrcPointCloudImporter.js +1 -1
- package/dist/esm/foundation/importer/Gltf2Importer.js +1 -1
- package/dist/esm/foundation/importer/GltfImporter.js +1 -1
- package/dist/esm/foundation/importer/ModelConverter.d.ts +19 -0
- package/dist/esm/foundation/importer/ModelConverter.js +1 -1
- package/dist/esm/foundation/importer/RhodoniteImportExtension.js +1 -1
- package/dist/esm/foundation/importer/Vrm0xImporter.js +1 -1
- package/dist/esm/foundation/importer/VrmImporter.js +1 -1
- package/dist/esm/foundation/materials/contents/ColorGradingUsingLUTsMaterialContent.d.ts +0 -20
- package/dist/esm/foundation/materials/contents/ColorGradingUsingLUTsMaterialContent.js +1 -1
- package/dist/esm/foundation/materials/contents/CustomMaterialContent.d.ts +3 -1
- package/dist/esm/foundation/materials/contents/CustomMaterialContent.js +1 -1
- package/dist/esm/foundation/materials/contents/DepthEncodeMaterialContent.js +1 -1
- package/dist/esm/foundation/materials/contents/DetectHighLuminanceMaterialContent.d.ts +0 -16
- package/dist/esm/foundation/materials/contents/DetectHighLuminanceMaterialContent.js +1 -1
- package/dist/esm/foundation/materials/contents/EntityUIDOutputMaterialContent.d.ts +0 -17
- package/dist/esm/foundation/materials/contents/EntityUIDOutputMaterialContent.js +1 -1
- package/dist/esm/foundation/materials/contents/FurnaceTestMaterialContent.d.ts +0 -21
- package/dist/esm/foundation/materials/contents/FurnaceTestMaterialContent.js +1 -1
- package/dist/esm/foundation/materials/contents/MToon0xMaterialContent.js +18 -18
- package/dist/esm/foundation/materials/contents/MToon1MaterialContent.js +6 -6
- package/dist/esm/foundation/materials/contents/MatCapMaterialContent.d.ts +0 -16
- package/dist/esm/foundation/materials/contents/MatCapMaterialContent.js +1 -1
- package/dist/esm/foundation/materials/contents/ShadowMapDecodeClassicMaterialContent.js +1 -1
- package/dist/esm/foundation/materials/contents/SynthesizeHdrMaterialContent.d.ts +0 -23
- package/dist/esm/foundation/materials/contents/SynthesizeHdrMaterialContent.js +1 -1
- package/dist/esm/foundation/materials/contents/VarianceShadowMapDecodeClassicMaterialContent.js +1 -1
- package/dist/esm/foundation/materials/core/AbstractMaterialContent.d.ts +6 -61
- package/dist/esm/foundation/materials/core/AbstractMaterialContent.js +1 -1
- package/dist/esm/foundation/materials/core/AbstractShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/core/AbstractShaderNode.js +2 -2
- package/dist/esm/foundation/materials/core/Material.d.ts +7 -114
- package/dist/esm/foundation/materials/core/Material.js +1 -1
- package/dist/esm/foundation/materials/core/MaterialRepository.js +1 -1
- package/dist/esm/foundation/materials/core/ShaderGraphResolver.js +6 -6
- package/dist/esm/foundation/materials/core/ShaderNodeFactories.d.ts +23 -0
- package/dist/esm/foundation/materials/core/ShaderNodeFactories.js +1 -0
- package/dist/esm/foundation/materials/core/ShaderProgramDefinitions.d.ts +41 -0
- package/dist/esm/foundation/materials/core/ShaderProgramDefinitions.js +23 -0
- package/dist/esm/foundation/materials/core/ShaderityUtilityWebGL.js +2 -2
- package/dist/esm/foundation/materials/core/ShaderityUtilityWebGPU.js +2 -2
- package/dist/esm/foundation/materials/nodes/AbsShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/AcosShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/AddShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/AlphaTestShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/AndShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/Atan2ShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/AttributeColorShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/AttributeInstanceIdsShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/AttributeJointShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/AttributeNormalShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/AttributePositionShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/AttributeTangentShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/AttributeTexcoordShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/AttributeWeightShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/BlockBeginShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/BlockEndShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/BranchShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/CalcBitangentShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/CastToFloatShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/nodes/CastToFloatShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/ClampShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/nodes/ClampShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/ClassicShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/ConstantVariableShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/CosShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/nodes/CosShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/DotProductShaderNode.d.ts +2 -2
- package/dist/esm/foundation/materials/nodes/DotProductShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/EqualShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/nodes/EqualShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/FlatShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/GreaterOrEqualShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/nodes/GreaterOrEqualShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/GreaterShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/GreaterThanShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/nodes/GreaterThanShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/LengthShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/nodes/LengthShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/LessOrEqualShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/nodes/LessOrEqualShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/LessThanShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/nodes/LessThanShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/MergeVectorShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/MinShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/MultiplyShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/nodes/MultiplyShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/NormalMatrixShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/NormalizeShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/nodes/NormalizeShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/NotEqualShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/nodes/NotEqualShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/OrShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/PbrAnisotropyPropsShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/PbrAnisotropyRotationShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/PbrBaseColorPropsShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/PbrClearcoatPropsShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/PbrDiffuseTransmissionPropsShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/PbrEmissivePropsShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/PbrIridescencePropsShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/PbrMetallicRoughnessPropsShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/PbrNormalPropsShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/PbrOcclusionPropsShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/PbrShaderShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/PbrSheenPropsShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/PbrSpecularPropsShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/PbrTransmissionPropsShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/PbrVolumePropsShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/PremultipliedAlphaShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/nodes/PremultipliedAlphaShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/ProcessGeometryShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/ProjectionMatrixShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/Random_HashPRNGShaderNode.js +2 -2
- package/dist/esm/foundation/materials/nodes/Random_SinHashShaderNode.js +2 -2
- package/dist/esm/foundation/materials/nodes/RemapShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/nodes/RemapShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/SinShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/nodes/SinShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/SmoothStepShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/nodes/SmoothStepShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/SplitVectorShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/nodes/SplitVectorShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/StepShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/TanShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/nodes/TanShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/Texture2DShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/TimeShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/TransformShaderNode.d.ts +1 -1
- package/dist/esm/foundation/materials/nodes/TransformShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/UniformDataShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/ViewMatrixShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/WireframeMaterialNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/WorldMatrixShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/BendXYShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/BendXZShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/BendYXShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/BendYZShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/BendZXShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/BendZYShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/InitialPositionShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/OpSmoothIntersectionShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/OpSmoothSubtractionShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/OpSmoothUnionShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/OpSubtractionShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/OpUnionShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/OutDistanceShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/OutUnionShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/RaymarchCameraPositionShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/RaymarchHitDistanceShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/RaymarchHitNormalShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/RaymarchHitPositionShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/RaymarchObjectIdShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/RaymarchObjectIdUniformShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/RaymarchRayDirectionShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/RaymarchTBNShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/RaymarchViewDirectionShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdApplyTransformShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdApplyWorldMatrixShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdBarXShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdBarYShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdBarZShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdBoxShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdCapsuleShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdRepeatShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdRepeatXShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdRepeatXYShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdRepeatYShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdRepeatYZShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdRepeatZShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdRepeatZXShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdRoundBoxShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdSphereShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdTorusShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdTubeXShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdTubeYShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/SdTubeZShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/TwistXShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/TwistYShaderNode.js +1 -1
- package/dist/esm/foundation/materials/nodes/raymarching/TwistZShaderNode.js +1 -1
- package/dist/esm/foundation/math/IdentityMatrix33.js +2 -2
- package/dist/esm/foundation/math/IdentityMatrix44.js +2 -2
- package/dist/esm/foundation/math/MathClassUtil.js +1 -1
- package/dist/esm/foundation/math/MathUtil.d.ts +11 -0
- package/dist/esm/foundation/math/MathUtil.js +1 -1
- package/dist/esm/foundation/math/Quaternion.js +1 -1
- package/dist/esm/foundation/math/Transform3D.js +1 -1
- package/dist/esm/foundation/memory/Accessor.js +6 -6
- package/dist/esm/foundation/memory/Buffer.js +3 -3
- package/dist/esm/foundation/memory/BufferView.js +1 -1
- package/dist/esm/foundation/misc/Logger.js +1 -1
- package/dist/esm/foundation/misc/Time.js +1 -1
- package/dist/esm/foundation/physics/Rapier/RapierCharacterControllerStrategy.js +1 -1
- package/dist/esm/foundation/physics/Rapier/RapierPhysicsStrategy.js +1 -1
- package/dist/esm/foundation/physics/VRMSpring/CapsuleCollider.js +1 -1
- package/dist/esm/foundation/physics/VRMSpring/SphereCollider.js +1 -1
- package/dist/esm/foundation/physics/VRMSpring/VRMSpringBone.js +1 -1
- package/dist/esm/foundation/renderer/CGAPIResourceRepository.d.ts +74 -4
- package/dist/esm/foundation/renderer/CGAPIResourceRepository.js +1 -1
- package/dist/esm/foundation/renderer/Frame.js +1 -1
- package/dist/esm/foundation/renderer/FrameBuffer.js +1 -1
- package/dist/esm/foundation/renderer/FrameRenderer.d.ts +42 -0
- package/dist/esm/foundation/renderer/FrameRenderer.js +0 -0
- package/dist/esm/foundation/renderer/RenderPass.js +1 -1
- package/dist/esm/foundation/renderer/ShaderPropertyLayout.d.ts +77 -0
- package/dist/esm/foundation/renderer/ShaderPropertyLayout.js +1 -0
- package/dist/esm/foundation/renderer/TemporalAA/PreviousFrameDataTracker.js +1 -1
- package/dist/esm/foundation/renderer/TemporalAA/TemporalAASystem.d.ts +9 -3
- package/dist/esm/foundation/renderer/TemporalAA/TemporalAASystem.js +1 -1
- package/dist/esm/foundation/renderer/lightCluster/LightClusterSystem.d.ts +12 -0
- package/dist/esm/foundation/renderer/lightCluster/LightClusterSystem.js +1 -1
- package/dist/esm/foundation/renderer/lightCluster/LightClusterSystemStub.js +1 -1
- package/dist/esm/foundation/renderer/pipelines/DeferredRenderPipeline.js +1 -1
- package/dist/esm/foundation/renderer/pipelines/ForwardRenderPipeline.d.ts +82 -176
- package/dist/esm/foundation/renderer/pipelines/ForwardRenderPipeline.js +1 -1
- package/dist/esm/foundation/renderer/pipelines/RaymarchingRenderer.d.ts +263 -0
- package/dist/esm/foundation/renderer/pipelines/RaymarchingRenderer.js +1 -0
- package/dist/esm/foundation/system/Engine.d.ts +19 -44
- package/dist/esm/foundation/system/Engine.js +1 -1
- package/dist/esm/foundation/system/EngineState.d.ts +9 -3
- package/dist/esm/foundation/system/EngineState.js +1 -1
- package/dist/esm/foundation/system/GpuDriverWorkarounds.d.ts +50 -0
- package/dist/esm/foundation/system/GpuDriverWorkarounds.js +1 -0
- package/dist/esm/foundation/system/ModuleManager.js +1 -1
- package/dist/esm/foundation/system/index.d.ts +1 -0
- package/dist/esm/foundation/system/index.js +1 -1
- package/dist/esm/foundation/textures/AbstractReadableRenderTargetTexture.d.ts +39 -0
- package/dist/esm/foundation/textures/AbstractReadableRenderTargetTexture.js +1 -0
- package/dist/esm/foundation/textures/AbstractRenderTargetTexture.d.ts +60 -0
- package/dist/esm/foundation/textures/AbstractRenderTargetTexture.js +1 -0
- package/dist/esm/foundation/textures/AbstractTexture.js +1 -1
- package/dist/esm/foundation/textures/CubeTexture.js +1 -1
- package/dist/esm/foundation/textures/RenderBuffer.js +1 -1
- package/dist/esm/foundation/textures/RenderTargetTexture.d.ts +5 -67
- package/dist/esm/foundation/textures/RenderTargetTexture.js +1 -1
- package/dist/esm/foundation/textures/RenderTargetTexture2DArray.d.ts +5 -71
- package/dist/esm/foundation/textures/RenderTargetTexture2DArray.js +1 -1
- package/dist/esm/foundation/textures/RenderTargetTextureCube.d.ts +8 -50
- package/dist/esm/foundation/textures/RenderTargetTextureCube.js +1 -1
- package/dist/esm/foundation/textures/Texture.d.ts +19 -1
- package/dist/esm/foundation/textures/Texture.js +1 -1
- package/dist/esm/foundation/textures/TextureArray.js +1 -1
- package/dist/esm/foundation/textures/TextureDataFloat.js +1 -1
- package/dist/esm/foundation/textures/VideoTexture.d.ts +11 -0
- package/dist/esm/foundation/textures/VideoTexture.js +1 -1
- package/dist/esm/foundation/textures/decodeBasisImage.d.ts +14 -0
- package/dist/esm/foundation/textures/decodeBasisImage.js +1 -0
- package/dist/esm/foundation/textures/index.d.ts +2 -0
- package/dist/esm/foundation/textures/index.js +1 -1
- package/dist/esm/types/glTF2.d.ts +9 -0
- package/dist/esm/version.js +1 -1
- package/dist/esm/webgl/ComponentDataAccessorGLSL.d.ts +9 -0
- package/dist/esm/webgl/ComponentDataAccessorGLSL.js +27 -0
- package/dist/esm/webgl/InstanceSidTable.js +1 -1
- package/dist/esm/webgl/MultiDraw.d.ts +1 -1
- package/dist/esm/webgl/MultiDraw.js +1 -1
- package/dist/esm/webgl/MultiDrawRepository.js +1 -1
- package/dist/esm/webgl/ShaderPropertyAccessorGLSL.d.ts +11 -0
- package/dist/esm/webgl/ShaderPropertyAccessorGLSL.js +29 -0
- package/dist/esm/webgl/WebGLCompressedTextures.d.ts +48 -0
- package/dist/esm/webgl/WebGLCompressedTextures.js +1 -0
- package/dist/esm/webgl/WebGLContextWrapper.d.ts +9 -52
- package/dist/esm/webgl/WebGLContextWrapper.js +1 -1
- package/dist/esm/webgl/WebGLCubeTextureFileLoader.d.ts +38 -0
- package/dist/esm/webgl/WebGLCubeTextureFileLoader.js +1 -0
- package/dist/esm/webgl/WebGLCubeTextures.d.ts +92 -0
- package/dist/esm/webgl/WebGLCubeTextures.js +42 -0
- package/dist/esm/webgl/WebGLDataTexture.d.ts +108 -0
- package/dist/esm/webgl/WebGLDataTexture.js +1 -0
- package/dist/esm/webgl/WebGLDrawState.d.ts +84 -0
- package/dist/esm/webgl/WebGLDrawState.js +1 -0
- package/dist/esm/webgl/WebGLExternalState.d.ts +43 -0
- package/dist/esm/webgl/WebGLExternalState.js +1 -0
- package/dist/esm/webgl/WebGLFrameRenderer.d.ts +32 -0
- package/dist/esm/webgl/WebGLFrameRenderer.js +1 -0
- package/dist/esm/webgl/WebGLFramebuffers.d.ts +142 -0
- package/dist/esm/webgl/WebGLFramebuffers.js +1 -0
- package/dist/esm/webgl/WebGLGpuTimer.js +1 -1
- package/dist/esm/webgl/WebGLMaterialParameters.d.ts +47 -0
- package/dist/esm/webgl/WebGLMaterialParameters.js +1 -0
- package/dist/esm/webgl/WebGLMeshResources.d.ts +115 -0
- package/dist/esm/webgl/WebGLMeshResources.js +1 -0
- package/dist/esm/webgl/WebGLMorphUniformBuffers.d.ts +66 -0
- package/dist/esm/webgl/WebGLMorphUniformBuffers.js +57 -0
- package/dist/esm/webgl/WebGLResourceRepository.d.ts +100 -178
- package/dist/esm/webgl/WebGLResourceRepository.js +1 -55
- package/dist/esm/webgl/WebGLSamplers.d.ts +78 -0
- package/dist/esm/webgl/WebGLSamplers.js +1 -0
- package/dist/esm/webgl/WebGLShaderProgramBuilder.d.ts +40 -0
- package/dist/esm/webgl/WebGLShaderProgramBuilder.js +15 -0
- package/dist/esm/webgl/WebGLShaderPrograms.d.ts +88 -0
- package/dist/esm/webgl/WebGLShaderPrograms.js +14 -0
- package/dist/esm/webgl/WebGLStereoUtil.d.ts +0 -27
- package/dist/esm/webgl/WebGLStereoUtil.js +3 -3
- package/dist/esm/webgl/WebGLStrategyDataUploader.d.ts +152 -0
- package/dist/esm/webgl/WebGLStrategyDataUploader.js +1 -0
- package/dist/esm/webgl/WebGLStrategyMeshBatchRenderer.d.ts +40 -0
- package/dist/esm/webgl/WebGLStrategyMeshBatchRenderer.js +1 -0
- package/dist/esm/webgl/WebGLStrategyMeshDrawer.d.ts +92 -0
- package/dist/esm/webgl/WebGLStrategyMeshDrawer.js +1 -0
- package/dist/esm/webgl/WebGLStrategyWebGL2.d.ts +7 -360
- package/dist/esm/webgl/WebGLStrategyWebGL2.js +1 -146
- package/dist/esm/webgl/WebGLTextureUnitState.d.ts +79 -0
- package/dist/esm/webgl/WebGLTextureUnitState.js +1 -0
- package/dist/esm/webgl/WebGLTextureUploads.d.ts +106 -0
- package/dist/esm/webgl/WebGLTextureUploads.js +1 -0
- package/dist/esm/webgl/WebGLTextures.d.ts +316 -0
- package/dist/esm/webgl/WebGLTextures.js +1 -0
- package/dist/esm/webgl/WebGLUniformBuffers.d.ts +35 -0
- package/dist/esm/webgl/WebGLUniformBuffers.js +1 -0
- package/dist/esm/webgl/WebGLUniforms.d.ts +117 -0
- package/dist/esm/webgl/WebGLUniforms.js +1 -0
- package/dist/esm/webgl/WebGLVertexBuffers.d.ts +172 -0
- package/dist/esm/webgl/WebGLVertexBuffers.js +1 -0
- package/dist/esm/webgl/debug/BufferLayoutDecoder.d.ts +4 -4
- package/dist/esm/webgl/debug/BufferLayoutDecoder.js +1 -1
- package/dist/esm/webgl/debug/ShaderParameterDebugger.js +1 -1
- package/dist/esm/webgl/debug/types.d.ts +2 -2
- package/dist/esm/webgl/getRenderingStrategy.d.ts +2 -2
- package/dist/esm/webgl/getRenderingStrategy.js +1 -1
- package/dist/esm/webgl/main.d.ts +4 -17
- package/dist/esm/webgl/main.js +1 -1
- package/dist/esm/webgl/readColorAttachmentAsRgba8.d.ts +36 -0
- package/dist/esm/webgl/readColorAttachmentAsRgba8.js +1 -0
- package/dist/esm/webgl/shaderity_shaders/ClassicSingleShader/ClassicSingleShader.frag.js +17 -8
- package/dist/esm/webgl/shaderity_shaders/ClassicSingleShader/ClassicSingleShader.vert.js +5 -5
- package/dist/esm/webgl/shaderity_shaders/ColorGradingUsingLUTsShader/ColorGradingUsingLUTsShader.vert.js +1 -1
- package/dist/esm/webgl/shaderity_shaders/DepthEncodeSingleShader/DepthEncodeSingleShader.vert.js +2 -2
- package/dist/esm/webgl/shaderity_shaders/DepthMomentEncodeShader/DepthMomentEncodeShader.vert.js +3 -3
- package/dist/esm/webgl/shaderity_shaders/DetectHighLuminanceAndCorrectShader/DetectHighLuminanceAndCorrectShader.vert.js +2 -2
- package/dist/esm/webgl/shaderity_shaders/EntityUIDOutputSingleShader/EntityUIDOutputSingleShader.vert.js +2 -2
- package/dist/esm/webgl/shaderity_shaders/EnvConstantScreenSpaceShader/EnvConstantScreenSpaceShader.frag.js +84 -0
- package/dist/esm/webgl/shaderity_shaders/EnvConstantScreenSpaceShader/EnvConstantScreenSpaceShader.vert.js +34 -0
- package/dist/esm/webgl/shaderity_shaders/EnvConstantSingleShader/EnvConstantSingleShader.frag.js +5 -5
- package/dist/esm/webgl/shaderity_shaders/EnvConstantSingleShader/EnvConstantSingleShader.vert.js +2 -2
- package/dist/esm/webgl/shaderity_shaders/FlatSingleShader/FlatSingleShader.frag.js +7 -7
- package/dist/esm/webgl/shaderity_shaders/FlatSingleShader/FlatSingleShader.vert.js +4 -4
- package/dist/esm/webgl/shaderity_shaders/GammaCorrectionShader/GammaCorrectionShader.frag.js +1 -1
- package/dist/esm/webgl/shaderity_shaders/MToon0xSingleShader/MToon0xSingleShader.frag.glsl.js +8 -5
- package/dist/esm/webgl/shaderity_shaders/MToon0xSingleShader/MToon0xSingleShader.vert.glsl.js +1 -1
- package/dist/esm/webgl/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.frag.glsl.js +43 -40
- package/dist/esm/webgl/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.vert.glsl.js +4 -4
- package/dist/esm/webgl/shaderity_shaders/MatCapShader/MatCapShader.vert.js +1 -1
- package/dist/esm/webgl/shaderity_shaders/MotionVectorShader/MotionVectorShader.vert.js +3 -3
- package/dist/esm/webgl/shaderity_shaders/PanoramaToCubeShader/PanoramaToCubeShader.frag.js +1 -1
- package/dist/esm/webgl/shaderity_shaders/ParaboloidDepthMomentEncodeShader/ParaboloidDepthMomentEncodeShader.frag.glsl.js +1 -1
- package/dist/esm/webgl/shaderity_shaders/ParaboloidDepthMomentEncodeShader/ParaboloidDepthMomentEncodeShader.vert.glsl.js +4 -4
- package/dist/esm/webgl/shaderity_shaders/PbrSingleShader/PbrSingleShader.frag.js +124 -112
- package/dist/esm/webgl/shaderity_shaders/PbrSingleShader/PbrSingleShader.vert.js +6 -6
- package/dist/esm/webgl/shaderity_shaders/PrefilterIBLShader/PrefilterIBLShader.frag.js +5 -5
- package/dist/esm/webgl/shaderity_shaders/ShadowMapDecodeClassicSingleShader/ShadowMapDecodeClassicSingleShader.vert.js +2 -2
- package/dist/esm/webgl/shaderity_shaders/SummedAreaTableShader/SummedAreaTableShader.frag.js +3 -3
- package/dist/esm/webgl/shaderity_shaders/ToneMappingShader/ToneMappingShader.frag.js +1 -1
- package/dist/esm/webgl/shaderity_shaders/VarianceShadowMapDecodeClassicShader/VarianceShadowMapDecodeClassicShader.vert.js +2 -2
- package/dist/esm/webgl/shaderity_shaders/common/iblDefinition.glsl.js +54 -1
- package/dist/esm/webgl/shaderity_shaders/common/morphVariables.glsl.js +2 -2
- package/dist/esm/webgl/shaderity_shaders/common/opticalDefinition.glsl.js +4 -1
- package/dist/esm/webgl/shaderity_shaders/common/prerequisites.glsl.js +3 -3
- package/dist/esm/webgl/shaderity_shaders/nodes/ClassicShader.glsl.js +10 -1
- package/dist/esm/webgl/shaderity_shaders/nodes/PbrShader.glsl.js +12 -0
- package/dist/esm/webgl/shaders/RaymarchingShaderPart.d.ts +2 -2
- package/dist/esm/webgl/shaders/RaymarchingShaderPart.js +30 -18
- package/dist/esm/webgl/shaders/RaymarchingShadowShaderPart.js +9 -9
- package/dist/esm/webgl/shaders/StandardShaderPart.d.ts +3 -3
- package/dist/esm/webgl/shaders/StandardShaderPart.js +16 -16
- package/dist/esm/webgl/shaders/glslCommonChunks.d.ts +2 -2
- package/dist/esm/webgl/shaders/nodes/BlockBeginShader.js +1 -1
- package/dist/esm/webgl/shaders/nodes/BlockEndShader.js +1 -1
- package/dist/esm/webgl/shaders/nodes/ConstantVariableShader.d.ts +2 -2
- package/dist/esm/webgl/shaders/nodes/ConstantVariableShader.js +7 -7
- package/dist/esm/webgl/shaders/nodes/DiscardShader.d.ts +1 -1
- package/dist/esm/webgl/shaders/nodes/DiscardShader.js +3 -3
- package/dist/esm/webgl/shaders/nodes/EndShader.d.ts +2 -2
- package/dist/esm/webgl/shaders/nodes/EndShader.js +3 -3
- package/dist/esm/webgl/shaders/nodes/OutDistance.d.ts +1 -1
- package/dist/esm/webgl/shaders/nodes/OutDistance.js +1 -1
- package/dist/esm/webgl/shaders/nodes/OutUnion.js +1 -1
- package/dist/esm/webgl/shaders/nodes/RaymarchObjectIdUniform.js +3 -3
- package/dist/esm/webgl/shaders/nodes/SdApplyTransform.js +5 -5
- package/dist/esm/webgl/shaders/nodes/SdApplyWorldMatrix.d.ts +1 -1
- package/dist/esm/webgl/shaders/nodes/SdApplyWorldMatrix.js +3 -3
- package/dist/esm/webgl/shaders/nodes/Texture2DShader.js +18 -18
- package/dist/esm/webgl/shaders/nodes/UniformDataShader.js +14 -14
- package/dist/esm/webgl/textureLoader/KTX2TextureLoader.d.ts +1 -1
- package/dist/esm/webgl/textureLoader/KTX2TextureLoader.js +1 -1
- package/dist/esm/webgpu/AttributeReader.d.ts +18 -0
- package/dist/esm/webgpu/AttributeReader.js +1 -0
- package/dist/esm/webgpu/GpuCullingRegistry.js +1 -1
- package/dist/esm/webgpu/GpuDeformRegistry.js +1 -1
- package/dist/esm/webgpu/RangeAllocator.js +1 -1
- package/dist/esm/webgpu/ShaderPropertyAccessorWGSL.d.ts +11 -0
- package/dist/esm/webgpu/ShaderPropertyAccessorWGSL.js +24 -0
- package/dist/esm/webgpu/WebGpuBindGroups.d.ts +131 -0
- package/dist/esm/webgpu/WebGpuBindGroups.js +1 -0
- package/dist/esm/webgpu/WebGpuBufferArena.js +1 -1
- package/dist/esm/webgpu/WebGpuCompressedTextures.d.ts +38 -0
- package/dist/esm/webgpu/WebGpuCompressedTextures.js +1 -0
- package/dist/esm/webgpu/WebGpuCubeTextureShaders.d.ts +1 -0
- package/dist/esm/webgpu/WebGpuCubeTextureShaders.js +60 -0
- package/dist/esm/webgpu/WebGpuCubeTextures.d.ts +72 -0
- package/dist/esm/webgpu/WebGpuCubeTextures.js +1 -0
- package/dist/esm/webgpu/WebGpuDraw.d.ts +63 -0
- package/dist/esm/webgpu/WebGpuDraw.js +1 -0
- package/dist/esm/webgpu/WebGpuDrawParameters.d.ts +61 -0
- package/dist/esm/webgpu/WebGpuDrawParameters.js +1 -0
- package/dist/esm/webgpu/WebGpuExternalRenderPass.d.ts +44 -0
- package/dist/esm/webgpu/WebGpuExternalRenderPass.js +1 -0
- package/dist/esm/webgpu/WebGpuFrame.d.ts +55 -0
- package/dist/esm/webgpu/WebGpuFrame.js +1 -0
- package/dist/esm/webgpu/WebGpuFrameRenderer.d.ts +25 -0
- package/dist/esm/webgpu/WebGpuFrameRenderer.js +1 -0
- package/dist/esm/webgpu/WebGpuGpuCulling.js +1 -236
- package/dist/esm/webgpu/WebGpuGpuCullingShaders.d.ts +34 -0
- package/dist/esm/webgpu/WebGpuGpuCullingShaders.js +236 -0
- package/dist/esm/webgpu/WebGpuGpuTimer.js +1 -1
- package/dist/esm/webgpu/WebGpuLightClusterBuilder.js +1 -153
- package/dist/esm/webgpu/WebGpuLightClusterShaders.d.ts +14 -0
- package/dist/esm/webgpu/WebGpuLightClusterShaders.js +153 -0
- package/dist/esm/webgpu/WebGpuMipmapGenerator.d.ts +54 -0
- package/dist/esm/webgpu/WebGpuMipmapGenerator.js +1 -0
- package/dist/esm/webgpu/WebGpuMipmapShaders.d.ts +1 -0
- package/dist/esm/webgpu/WebGpuMipmapShaders.js +26 -0
- package/dist/esm/webgpu/WebGpuRenderBundles.d.ts +117 -0
- package/dist/esm/webgpu/WebGpuRenderBundles.js +1 -0
- package/dist/esm/webgpu/WebGpuRenderPassEncoders.d.ts +140 -0
- package/dist/esm/webgpu/WebGpuRenderPassEncoders.js +1 -0
- package/dist/esm/webgpu/WebGpuRenderPipelines.d.ts +75 -0
- package/dist/esm/webgpu/WebGpuRenderPipelines.js +3 -0
- package/dist/esm/webgpu/WebGpuRenderTargetTextures.d.ts +78 -0
- package/dist/esm/webgpu/WebGpuRenderTargetTextures.js +1 -0
- package/dist/esm/webgpu/WebGpuResourceRepository.d.ts +52 -322
- package/dist/esm/webgpu/WebGpuResourceRepository.js +1 -116
- package/dist/esm/webgpu/WebGpuSamplers.d.ts +45 -0
- package/dist/esm/webgpu/WebGpuSamplers.js +1 -0
- package/dist/esm/webgpu/WebGpuShaderProgramBuilder.d.ts +25 -0
- package/dist/esm/webgpu/WebGpuShaderProgramBuilder.js +9 -0
- package/dist/esm/webgpu/WebGpuStorageBuffers.d.ts +77 -0
- package/dist/esm/webgpu/WebGpuStorageBuffers.js +1 -0
- package/dist/esm/webgpu/WebGpuStrategyBasic.d.ts +2 -73
- package/dist/esm/webgpu/WebGpuStrategyBasic.js +1 -139
- package/dist/esm/webgpu/WebGpuStrategyStorage.d.ts +62 -0
- package/dist/esm/webgpu/WebGpuStrategyStorage.js +1 -0
- package/dist/esm/webgpu/WebGpuTextureReadback.d.ts +111 -0
- package/dist/esm/webgpu/WebGpuTextureReadback.js +1 -0
- package/dist/esm/webgpu/WebGpuTextureReadbackShaders.d.ts +4 -0
- package/dist/esm/webgpu/WebGpuTextureReadbackShaders.js +26 -0
- package/dist/esm/webgpu/WebGpuTextureUploads.d.ts +109 -0
- package/dist/esm/webgpu/WebGpuTextureUploads.js +1 -0
- package/dist/esm/webgpu/WebGpuTextures.d.ts +196 -0
- package/dist/esm/webgpu/WebGpuTextures.js +1 -0
- package/dist/esm/webgpu/WebGpuVertexBuffers.d.ts +142 -0
- package/dist/esm/webgpu/WebGpuVertexBuffers.js +1 -0
- package/dist/esm/webgpu/WebGpuVertexDeformer.js +1 -124
- package/dist/esm/webgpu/WebGpuVertexDeformerShaders.d.ts +7 -0
- package/dist/esm/webgpu/WebGpuVertexDeformerShaders.js +124 -0
- package/dist/esm/webgpu/WebGpuVertexShaderDefinitions.d.ts +16 -0
- package/dist/esm/webgpu/WebGpuVertexShaderDefinitions.js +84 -0
- package/dist/esm/webgpu/assertArrayBufferView.d.ts +9 -0
- package/dist/esm/webgpu/assertArrayBufferView.js +1 -0
- package/dist/esm/webgpu/main.d.ts +2 -16
- package/dist/esm/webgpu/main.js +1 -1
- package/dist/esm/webgpu/padCompressedRowsForUpload.d.ts +20 -0
- package/dist/esm/webgpu/padCompressedRowsForUpload.js +1 -0
- package/dist/esm/webgpu/removeRowPadding.d.ts +21 -0
- package/dist/esm/webgpu/removeRowPadding.js +1 -0
- package/dist/esm/webgpu/shaderity_shaders/ClassicSingleShader/ClassicSingleShader.frag.js +15 -8
- package/dist/esm/webgpu/shaderity_shaders/EnvConstantScreenSpaceShader/EnvConstantScreenSpaceShader.frag.wgsl.js +84 -0
- package/dist/esm/webgpu/shaderity_shaders/EnvConstantScreenSpaceShader/EnvConstantScreenSpaceShader.vert.wgsl.js +19 -0
- package/dist/esm/webgpu/shaderity_shaders/EnvConstantSingleShader/EnvConstantSingleShader.frag.js +6 -6
- package/dist/esm/webgpu/shaderity_shaders/EnvConstantSingleShader/EnvConstantSingleShader.vert.js +3 -3
- package/dist/esm/webgpu/shaderity_shaders/FlatSingleShader/FlatSingleShader.frag.js +5 -5
- package/dist/esm/webgpu/shaderity_shaders/GammaCorrectionShader/GammaCorrectionShader.frag.js +3 -3
- package/dist/esm/webgpu/shaderity_shaders/MToon0xSingleShader/MToon0xSingleShader.frag.wgsl.js +9 -6
- package/dist/esm/webgpu/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.frag.wgsl.js +44 -41
- package/dist/esm/webgpu/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.vert.wgsl.js +2 -2
- package/dist/esm/webgpu/shaderity_shaders/PanoramaToCubeShader/PanoramaToCubeShader.frag.wgsl.js +1 -1
- package/dist/esm/webgpu/shaderity_shaders/ParaboloidDepthMomentEncodeShader/ParaboloidDepthMomentEncodeShader.frag.wgsl.js +2 -2
- package/dist/esm/webgpu/shaderity_shaders/ParaboloidDepthMomentEncodeShader/ParaboloidDepthMomentEncodeShader.vert.wgsl.js +3 -3
- package/dist/esm/webgpu/shaderity_shaders/PbrSingleShader/PbrSingleShader.frag.js +125 -114
- package/dist/esm/webgpu/shaderity_shaders/PrefilterIBLShader/PrefilterIBLShader.frag.wgsl.js +5 -5
- package/dist/esm/webgpu/shaderity_shaders/ToneMappingShader/ToneMappingShader.frag.wgsl.js +1 -1
- package/dist/esm/webgpu/shaderity_shaders/common/iblDefinition.wgsl.js +55 -1
- package/dist/esm/webgpu/shaderity_shaders/common/opticalDefinition.wgsl.js +4 -1
- package/dist/esm/webgpu/shaderity_shaders/common/processGeometry.wgsl.js +1 -1
- package/dist/esm/webgpu/shaderity_shaders/nodes/ClassicShader.wgsl.js +7 -0
- package/dist/esm/webgpu/shaderity_shaders/nodes/PbrShader.wgsl.js +13 -2
- package/dist/esm/webgpu/wgslCommonChunks.d.ts +2 -2
- package/dist/esm/xr/WebARSystem.js +1 -1
- package/dist/esm/xr/WebXRSystem.d.ts +0 -4
- package/dist/esm/xr/WebXRSystem.js +1 -1
- package/dist/esmdev/effekseer/EffekseerComponent.js +3 -3
- package/dist/esmdev/foundation/components/Camera/CameraComponent.js +4 -4
- package/dist/esmdev/foundation/components/Light/LightComponent.d.ts +14 -0
- package/dist/esmdev/foundation/components/Light/LightComponent.js +38 -11
- package/dist/esmdev/foundation/components/Mesh/MeshComponent.js +47 -44
- package/dist/esmdev/foundation/components/MeshRenderer/MeshRendererComponent.d.ts +33 -5
- package/dist/esmdev/foundation/components/MeshRenderer/MeshRendererComponent.js +152 -102
- package/dist/esmdev/foundation/components/Physics/PhysicsComponent.js +65 -65
- package/dist/esmdev/foundation/components/Raymarching/RaymarchingComponent.js +54 -54
- package/dist/esmdev/foundation/components/Raymarching/RaymarchingSdfEvaluator.js +250 -250
- package/dist/esmdev/foundation/components/SceneGraph/SceneGraphComponent.js +335 -335
- package/dist/esmdev/foundation/components/Shape/ShapeComponent.js +31 -31
- package/dist/esmdev/foundation/components/Skeletal/AnimationRetarget/AbsoluteAnimation.js +5 -5
- package/dist/esmdev/foundation/components/Skeletal/AnimationRetarget/GlobalRetarget.js +5 -5
- package/dist/esmdev/foundation/components/Skeletal/AnimationRetarget/GlobalRetargetReverse.js +9 -9
- package/dist/esmdev/foundation/components/Skeletal/SkeletalComponent.js +222 -222
- package/dist/esmdev/foundation/components/Transform/TransformComponent.js +66 -66
- package/dist/esmdev/foundation/components/Trigger/TriggerComponent.js +61 -61
- package/dist/esmdev/foundation/components/Vrm/VrmComponent.js +44 -44
- package/dist/esmdev/foundation/constraints/VrmAimConstraint.js +11 -11
- package/dist/esmdev/foundation/constraints/VrmRollConstraint.js +16 -16
- package/dist/esmdev/foundation/constraints/VrmRotationConstraint.js +10 -10
- package/dist/esmdev/foundation/core/Component.js +32 -32
- package/dist/esmdev/foundation/core/ComponentMemoryRegistry.js +41 -41
- package/dist/esmdev/foundation/core/ComponentRepository.js +37 -37
- package/dist/esmdev/foundation/core/Config.d.ts +15 -0
- package/dist/esmdev/foundation/core/Config.js +27 -10
- package/dist/esmdev/foundation/core/Entity.js +9 -9
- package/dist/esmdev/foundation/core/EntityRepository.js +19 -19
- package/dist/esmdev/foundation/core/GlobalDataRepository.d.ts +3 -3
- package/dist/esmdev/foundation/core/GlobalDataRepository.js +33 -20
- package/dist/esmdev/foundation/core/MemoryManager.js +27 -27
- package/dist/esmdev/foundation/core/RnObject.js +36 -36
- package/dist/esmdev/foundation/definitions/Blend.js +3 -3
- package/dist/esmdev/foundation/definitions/ComponentType.js +7 -7
- package/dist/esmdev/foundation/definitions/CompositionType.js +50 -50
- package/dist/esmdev/foundation/definitions/CompressionTextureType.js +6 -6
- package/dist/esmdev/foundation/definitions/RenderBackend.d.ts +21 -0
- package/dist/esmdev/foundation/definitions/RenderBackend.js +60 -0
- package/dist/esmdev/foundation/definitions/ShaderSemantics.js +6 -6
- package/dist/esmdev/foundation/definitions/ShaderSemanticsInfo.d.ts +1 -0
- package/dist/esmdev/foundation/definitions/ShaderSemanticsInfo.js +1 -1
- package/dist/esmdev/foundation/definitions/TextureFormat.js +3 -3
- package/dist/esmdev/foundation/definitions/TextureParameter.js +3 -3
- package/dist/esmdev/foundation/definitions/VertexAttribute.js +30 -30
- package/dist/esmdev/foundation/definitions/index.d.ts +1 -1
- package/dist/esmdev/foundation/definitions/index.js +2 -2
- package/dist/esmdev/foundation/enhanced_js_objects/Array.js +2 -2
- package/dist/esmdev/foundation/exporter/Gltf2Exporter.d.ts +6 -0
- package/dist/esmdev/foundation/exporter/Gltf2Exporter.js +140 -110
- package/dist/esmdev/foundation/geometry/ComplexVertexAttribute.js +24 -24
- package/dist/esmdev/foundation/geometry/Frustum.js +40 -40
- package/dist/esmdev/foundation/geometry/Mesh.d.ts +33 -68
- package/dist/esmdev/foundation/geometry/Mesh.js +211 -405
- package/dist/esmdev/foundation/geometry/Primitive.d.ts +1 -1
- package/dist/esmdev/foundation/geometry/Primitive.js +141 -135
- package/dist/esmdev/foundation/geometry/SimpleVertexAttribute.js +7 -7
- package/dist/esmdev/foundation/geometry/shapes/Cylinder.js +3 -3
- package/dist/esmdev/foundation/geometry/shapes/Joint.js +33 -33
- package/dist/esmdev/foundation/gizmos/AABBGizmo.js +16 -16
- package/dist/esmdev/foundation/gizmos/CapsuleColliderGizmo.js +23 -23
- package/dist/esmdev/foundation/gizmos/Gizmo.js +23 -23
- package/dist/esmdev/foundation/gizmos/JointGizmo.js +37 -37
- package/dist/esmdev/foundation/gizmos/LightGizmo.d.ts +108 -10
- package/dist/esmdev/foundation/gizmos/LightGizmo.js +248 -49
- package/dist/esmdev/foundation/gizmos/LocatorGizmo.js +25 -25
- package/dist/esmdev/foundation/gizmos/RotationGizmo.js +212 -212
- package/dist/esmdev/foundation/gizmos/ScaleGizmo.js +130 -130
- package/dist/esmdev/foundation/gizmos/ShapeGizmo.js +43 -43
- package/dist/esmdev/foundation/gizmos/SphereColliderGizmo.js +24 -24
- package/dist/esmdev/foundation/gizmos/TranslationGizmo.js +129 -129
- package/dist/esmdev/foundation/helpers/BloomHelper.js +42 -38
- package/dist/esmdev/foundation/helpers/GaussianBlurHelper.js +18 -18
- package/dist/esmdev/foundation/helpers/MaterialHelper.d.ts +2 -0
- package/dist/esmdev/foundation/helpers/MaterialHelper.js +3 -1
- package/dist/esmdev/foundation/helpers/Shadow/PointShadowMap.js +12 -12
- package/dist/esmdev/foundation/helpers/Shadow/ShadowCasterFilter.d.ts +8 -0
- package/dist/esmdev/foundation/helpers/Shadow/ShadowCasterFilter.js +17 -0
- package/dist/esmdev/foundation/helpers/Shadow/ShadowDirectionalAutoFit.d.ts +28 -0
- package/dist/esmdev/foundation/helpers/Shadow/ShadowDirectionalAutoFit.js +126 -0
- package/dist/esmdev/foundation/helpers/Shadow/ShadowMap.js +5 -5
- package/dist/esmdev/foundation/helpers/Shadow/ShadowSpotLightZNear.d.ts +8 -0
- package/dist/esmdev/foundation/helpers/Shadow/ShadowSpotLightZNear.js +87 -0
- package/dist/esmdev/foundation/helpers/Shadow/ShadowSystem.d.ts +1 -29
- package/dist/esmdev/foundation/helpers/Shadow/ShadowSystem.js +100 -309
- package/dist/esmdev/foundation/helpers/materials/createClassicUberMaterial.js +13 -5
- package/dist/esmdev/foundation/helpers/materials/createEnvConstantScreenSpaceMaterial.d.ts +21 -0
- package/dist/esmdev/foundation/helpers/materials/createEnvConstantScreenSpaceMaterial.js +32 -0
- package/dist/esmdev/foundation/helpers/materials/createGaussianBlurForEncodedDepthMaterial.js +12 -4
- package/dist/esmdev/foundation/helpers/materials/createGaussianBlurMaterial.js +13 -5
- package/dist/esmdev/foundation/helpers/materials/createMotionVectorMaterial.js +7 -3
- package/dist/esmdev/foundation/helpers/materials/createNodeBasedRaymarchingMaterials.js +41 -18
- package/dist/esmdev/foundation/helpers/materials/createPbrUberMaterial.js +13 -5
- package/dist/esmdev/foundation/helpers/materials/createTemporalAAResolveMaterial.js +22 -8
- package/dist/esmdev/foundation/helpers/materials/index.d.ts +1 -0
- package/dist/esmdev/foundation/helpers/materials/index.js +3 -1
- package/dist/esmdev/foundation/helpers/materials/nodeBasedMaterialCommon.js +26 -14
- package/dist/esmdev/foundation/importer/AnimationAssigner.js +44 -44
- package/dist/esmdev/foundation/importer/DrcPointCloudImporter.js +33 -33
- package/dist/esmdev/foundation/importer/Gltf2Importer.js +14 -14
- package/dist/esmdev/foundation/importer/GltfImporter.js +22 -22
- package/dist/esmdev/foundation/importer/ModelConverter.d.ts +19 -0
- package/dist/esmdev/foundation/importer/ModelConverter.js +183 -132
- package/dist/esmdev/foundation/importer/RhodoniteImportExtension.js +6 -6
- package/dist/esmdev/foundation/importer/Vrm0xImporter.js +48 -48
- package/dist/esmdev/foundation/importer/VrmImporter.js +10 -10
- package/dist/esmdev/foundation/materials/contents/ColorGradingUsingLUTsMaterialContent.d.ts +0 -20
- package/dist/esmdev/foundation/materials/contents/ColorGradingUsingLUTsMaterialContent.js +1 -33
- package/dist/esmdev/foundation/materials/contents/CustomMaterialContent.d.ts +3 -1
- package/dist/esmdev/foundation/materials/contents/CustomMaterialContent.js +31 -30
- package/dist/esmdev/foundation/materials/contents/DepthEncodeMaterialContent.js +15 -9
- package/dist/esmdev/foundation/materials/contents/DetectHighLuminanceMaterialContent.d.ts +0 -16
- package/dist/esmdev/foundation/materials/contents/DetectHighLuminanceMaterialContent.js +5 -20
- package/dist/esmdev/foundation/materials/contents/EntityUIDOutputMaterialContent.d.ts +0 -17
- package/dist/esmdev/foundation/materials/contents/EntityUIDOutputMaterialContent.js +5 -19
- package/dist/esmdev/foundation/materials/contents/FurnaceTestMaterialContent.d.ts +0 -21
- package/dist/esmdev/foundation/materials/contents/FurnaceTestMaterialContent.js +16 -28
- package/dist/esmdev/foundation/materials/contents/MToon0xMaterialContent.js +200 -174
- package/dist/esmdev/foundation/materials/contents/MToon1MaterialContent.js +21 -22
- package/dist/esmdev/foundation/materials/contents/MatCapMaterialContent.d.ts +0 -16
- package/dist/esmdev/foundation/materials/contents/MatCapMaterialContent.js +7 -20
- package/dist/esmdev/foundation/materials/contents/ShadowMapDecodeClassicMaterialContent.js +34 -21
- package/dist/esmdev/foundation/materials/contents/SynthesizeHdrMaterialContent.d.ts +0 -23
- package/dist/esmdev/foundation/materials/contents/SynthesizeHdrMaterialContent.js +5 -29
- package/dist/esmdev/foundation/materials/contents/VarianceShadowMapDecodeClassicMaterialContent.js +42 -26
- package/dist/esmdev/foundation/materials/core/AbstractMaterialContent.d.ts +6 -61
- package/dist/esmdev/foundation/materials/core/AbstractMaterialContent.js +61 -153
- package/dist/esmdev/foundation/materials/core/AbstractShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/core/AbstractShaderNode.js +31 -31
- package/dist/esmdev/foundation/materials/core/DummyTextures.js +3 -3
- package/dist/esmdev/foundation/materials/core/Material.d.ts +7 -114
- package/dist/esmdev/foundation/materials/core/Material.js +116 -364
- package/dist/esmdev/foundation/materials/core/MaterialRepository.js +65 -65
- package/dist/esmdev/foundation/materials/core/ShaderGraphResolver.js +46 -1399
- package/dist/esmdev/foundation/materials/core/ShaderNodeFactories.d.ts +23 -0
- package/dist/esmdev/foundation/materials/core/ShaderNodeFactories.js +609 -0
- package/dist/esmdev/foundation/materials/core/ShaderProgramDefinitions.d.ts +41 -0
- package/dist/esmdev/foundation/materials/core/ShaderProgramDefinitions.js +95 -0
- package/dist/esmdev/foundation/materials/core/ShaderityUtilityWebGL.js +26 -20
- package/dist/esmdev/foundation/materials/core/ShaderityUtilityWebGPU.js +29 -23
- package/dist/esmdev/foundation/materials/nodes/AbsShaderNode.js +16 -16
- package/dist/esmdev/foundation/materials/nodes/AcosShaderNode.js +16 -16
- package/dist/esmdev/foundation/materials/nodes/AddShaderNode.js +21 -21
- package/dist/esmdev/foundation/materials/nodes/AlphaTestShaderNode.js +5 -5
- package/dist/esmdev/foundation/materials/nodes/AndShaderNode.js +6 -6
- package/dist/esmdev/foundation/materials/nodes/Atan2ShaderNode.js +18 -18
- package/dist/esmdev/foundation/materials/nodes/AttributeColorShaderNode.js +1 -1
- package/dist/esmdev/foundation/materials/nodes/AttributeInstanceIdsShaderNode.js +1 -1
- package/dist/esmdev/foundation/materials/nodes/AttributeJointShaderNode.js +1 -1
- package/dist/esmdev/foundation/materials/nodes/AttributeNormalShaderNode.js +1 -1
- package/dist/esmdev/foundation/materials/nodes/AttributePositionShaderNode.js +2 -2
- package/dist/esmdev/foundation/materials/nodes/AttributeTangentShaderNode.js +1 -1
- package/dist/esmdev/foundation/materials/nodes/AttributeTexcoordShaderNode.js +2 -2
- package/dist/esmdev/foundation/materials/nodes/AttributeWeightShaderNode.js +1 -1
- package/dist/esmdev/foundation/materials/nodes/BlockBeginShaderNode.js +11 -11
- package/dist/esmdev/foundation/materials/nodes/BlockEndShaderNode.js +6 -6
- package/dist/esmdev/foundation/materials/nodes/BranchShaderNode.js +18 -18
- package/dist/esmdev/foundation/materials/nodes/CalcBitangentShaderNode.js +7 -7
- package/dist/esmdev/foundation/materials/nodes/CastToFloatShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/nodes/CastToFloatShaderNode.js +17 -17
- package/dist/esmdev/foundation/materials/nodes/ClampShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/nodes/ClampShaderNode.js +19 -19
- package/dist/esmdev/foundation/materials/nodes/ClassicShaderNode.js +11 -11
- package/dist/esmdev/foundation/materials/nodes/ConstantScalarVariableShaderNode.js +1 -1
- package/dist/esmdev/foundation/materials/nodes/ConstantVariableShaderNode.js +5 -5
- package/dist/esmdev/foundation/materials/nodes/ConstantVector2VariableShaderNode.js +1 -1
- package/dist/esmdev/foundation/materials/nodes/ConstantVector3VariableShaderNode.js +1 -1
- package/dist/esmdev/foundation/materials/nodes/ConstantVector4VariableShaderNode.js +1 -1
- package/dist/esmdev/foundation/materials/nodes/CosShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/nodes/CosShaderNode.js +17 -17
- package/dist/esmdev/foundation/materials/nodes/DiscardShaderNode.js +2 -2
- package/dist/esmdev/foundation/materials/nodes/DotProductShaderNode.d.ts +2 -2
- package/dist/esmdev/foundation/materials/nodes/DotProductShaderNode.js +15 -15
- package/dist/esmdev/foundation/materials/nodes/EqualShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/nodes/EqualShaderNode.js +14 -14
- package/dist/esmdev/foundation/materials/nodes/FlatShaderNode.js +5 -5
- package/dist/esmdev/foundation/materials/nodes/GreaterOrEqualShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/nodes/GreaterOrEqualShaderNode.js +14 -14
- package/dist/esmdev/foundation/materials/nodes/GreaterShaderNode.js +3 -3
- package/dist/esmdev/foundation/materials/nodes/GreaterThanShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/nodes/GreaterThanShaderNode.js +14 -14
- package/dist/esmdev/foundation/materials/nodes/LengthShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/nodes/LengthShaderNode.js +17 -17
- package/dist/esmdev/foundation/materials/nodes/LessOrEqualShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/nodes/LessOrEqualShaderNode.js +14 -14
- package/dist/esmdev/foundation/materials/nodes/LessThanShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/nodes/LessThanShaderNode.js +14 -14
- package/dist/esmdev/foundation/materials/nodes/MergeVectorShaderNode.js +23 -23
- package/dist/esmdev/foundation/materials/nodes/MinShaderNode.js +21 -21
- package/dist/esmdev/foundation/materials/nodes/MultiplyShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/nodes/MultiplyShaderNode.js +25 -25
- package/dist/esmdev/foundation/materials/nodes/NormalMatrixShaderNode.js +1 -1
- package/dist/esmdev/foundation/materials/nodes/NormalizeShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/nodes/NormalizeShaderNode.js +13 -13
- package/dist/esmdev/foundation/materials/nodes/NotEqualShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/nodes/NotEqualShaderNode.js +14 -14
- package/dist/esmdev/foundation/materials/nodes/OrShaderNode.js +6 -6
- package/dist/esmdev/foundation/materials/nodes/OutColorShaderNode.js +2 -2
- package/dist/esmdev/foundation/materials/nodes/OutPositionShaderNode.js +2 -2
- package/dist/esmdev/foundation/materials/nodes/PbrAnisotropyPropsShaderNode.js +5 -5
- package/dist/esmdev/foundation/materials/nodes/PbrAnisotropyRotationShaderNode.js +3 -3
- package/dist/esmdev/foundation/materials/nodes/PbrBaseColorPropsShaderNode.js +5 -5
- package/dist/esmdev/foundation/materials/nodes/PbrClearcoatPropsShaderNode.js +7 -7
- package/dist/esmdev/foundation/materials/nodes/PbrDiffuseTransmissionPropsShaderNode.js +6 -6
- package/dist/esmdev/foundation/materials/nodes/PbrEmissivePropsShaderNode.js +5 -5
- package/dist/esmdev/foundation/materials/nodes/PbrIridescencePropsShaderNode.js +8 -8
- package/dist/esmdev/foundation/materials/nodes/PbrMetallicRoughnessPropsShaderNode.js +6 -6
- package/dist/esmdev/foundation/materials/nodes/PbrNormalPropsShaderNode.js +11 -11
- package/dist/esmdev/foundation/materials/nodes/PbrOcclusionPropsShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/PbrShaderShaderNode.js +21 -21
- package/dist/esmdev/foundation/materials/nodes/PbrSheenPropsShaderNode.js +6 -6
- package/dist/esmdev/foundation/materials/nodes/PbrSpecularPropsShaderNode.js +6 -6
- package/dist/esmdev/foundation/materials/nodes/PbrTransmissionPropsShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/PbrVolumePropsShaderNode.js +6 -6
- package/dist/esmdev/foundation/materials/nodes/PremultipliedAlphaShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/nodes/PremultipliedAlphaShaderNode.js +8 -8
- package/dist/esmdev/foundation/materials/nodes/ProcessGeometryShaderNode.js +22 -22
- package/dist/esmdev/foundation/materials/nodes/ProjectionMatrixShaderNode.js +1 -1
- package/dist/esmdev/foundation/materials/nodes/Random_HashPRNGShaderNode.js +15 -15
- package/dist/esmdev/foundation/materials/nodes/Random_SinHashShaderNode.js +15 -15
- package/dist/esmdev/foundation/materials/nodes/RemapShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/nodes/RemapShaderNode.js +21 -21
- package/dist/esmdev/foundation/materials/nodes/SinShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/nodes/SinShaderNode.js +17 -17
- package/dist/esmdev/foundation/materials/nodes/SmoothStepShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/nodes/SmoothStepShaderNode.js +19 -19
- package/dist/esmdev/foundation/materials/nodes/SplitVectorShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/nodes/SplitVectorShaderNode.js +22 -22
- package/dist/esmdev/foundation/materials/nodes/StepShaderNode.js +17 -17
- package/dist/esmdev/foundation/materials/nodes/TanShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/nodes/TanShaderNode.js +17 -17
- package/dist/esmdev/foundation/materials/nodes/Texture2DShaderNode.js +16 -16
- package/dist/esmdev/foundation/materials/nodes/TimeShaderNode.js +1 -1
- package/dist/esmdev/foundation/materials/nodes/TransformShaderNode.d.ts +1 -1
- package/dist/esmdev/foundation/materials/nodes/TransformShaderNode.js +14 -14
- package/dist/esmdev/foundation/materials/nodes/UniformDataShaderNode.js +5 -5
- package/dist/esmdev/foundation/materials/nodes/ViewMatrixShaderNode.js +1 -1
- package/dist/esmdev/foundation/materials/nodes/WireframeMaterialNode.js +3 -3
- package/dist/esmdev/foundation/materials/nodes/WorldMatrixShaderNode.js +1 -1
- package/dist/esmdev/foundation/materials/nodes/raymarching/BendXYShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/raymarching/BendXZShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/raymarching/BendYXShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/raymarching/BendYZShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/raymarching/BendZXShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/raymarching/BendZYShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/raymarching/InitialPositionShaderNode.js +1 -1
- package/dist/esmdev/foundation/materials/nodes/raymarching/OpSmoothIntersectionShaderNode.js +5 -5
- package/dist/esmdev/foundation/materials/nodes/raymarching/OpSmoothSubtractionShaderNode.js +5 -5
- package/dist/esmdev/foundation/materials/nodes/raymarching/OpSmoothUnionShaderNode.js +5 -5
- package/dist/esmdev/foundation/materials/nodes/raymarching/OpSubtractionShaderNode.js +6 -6
- package/dist/esmdev/foundation/materials/nodes/raymarching/OpUnionShaderNode.js +6 -6
- package/dist/esmdev/foundation/materials/nodes/raymarching/OutDistanceShaderNode.js +16 -16
- package/dist/esmdev/foundation/materials/nodes/raymarching/OutShadingColorShaderNode.js +2 -2
- package/dist/esmdev/foundation/materials/nodes/raymarching/OutUnionShaderNode.js +16 -16
- package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchCameraPositionShaderNode.js +2 -2
- package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchHitDistanceShaderNode.js +2 -2
- package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchHitNormalShaderNode.js +2 -2
- package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchHitPositionShaderNode.js +2 -2
- package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchObjectIdShaderNode.js +2 -2
- package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchObjectIdUniformShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchRayDirectionShaderNode.js +2 -2
- package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchTBNShaderNode.js +2 -2
- package/dist/esmdev/foundation/materials/nodes/raymarching/RaymarchViewDirectionShaderNode.js +2 -2
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdApplyTransformShaderNode.js +9 -9
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdApplyWorldMatrixShaderNode.js +5 -5
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdBarXShaderNode.js +3 -3
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdBarYShaderNode.js +3 -3
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdBarZShaderNode.js +3 -3
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdBoxShaderNode.js +3 -3
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdCapsuleShaderNode.js +5 -5
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatXShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatXYShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatYShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatYZShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatZShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdRepeatZXShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdRoundBoxShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdSphereShaderNode.js +3 -3
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdTorusShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdTubeXShaderNode.js +3 -3
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdTubeYShaderNode.js +3 -3
- package/dist/esmdev/foundation/materials/nodes/raymarching/SdTubeZShaderNode.js +3 -3
- package/dist/esmdev/foundation/materials/nodes/raymarching/TwistXShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/raymarching/TwistYShaderNode.js +4 -4
- package/dist/esmdev/foundation/materials/nodes/raymarching/TwistZShaderNode.js +4 -4
- package/dist/esmdev/foundation/math/AABB.js +132 -132
- package/dist/esmdev/foundation/math/AnimatedQuaternion.js +54 -54
- package/dist/esmdev/foundation/math/AnimatedScalar.js +55 -55
- package/dist/esmdev/foundation/math/AnimatedValueEvaluationState.js +20 -20
- package/dist/esmdev/foundation/math/AnimatedVector2.js +55 -55
- package/dist/esmdev/foundation/math/AnimatedVector3.js +55 -55
- package/dist/esmdev/foundation/math/AnimatedVector4.js +55 -55
- package/dist/esmdev/foundation/math/AnimatedVectorN.js +55 -55
- package/dist/esmdev/foundation/math/IdentityMatrix33.js +2 -2
- package/dist/esmdev/foundation/math/IdentityMatrix44.js +2 -2
- package/dist/esmdev/foundation/math/MathClassUtil.js +4 -4
- package/dist/esmdev/foundation/math/MathUtil.d.ts +11 -0
- package/dist/esmdev/foundation/math/MathUtil.js +5 -1
- package/dist/esmdev/foundation/math/Quaternion.js +20 -20
- package/dist/esmdev/foundation/math/Transform3D.js +74 -74
- package/dist/esmdev/foundation/math/shapes/MathSphere.js +7 -7
- package/dist/esmdev/foundation/memory/Accessor.js +369 -369
- package/dist/esmdev/foundation/memory/Buffer.js +40 -40
- package/dist/esmdev/foundation/memory/BufferView.js +33 -33
- package/dist/esmdev/foundation/misc/DataUtil.js +2 -2
- package/dist/esmdev/foundation/misc/EnumIO.js +10 -10
- package/dist/esmdev/foundation/misc/Logger.js +14 -14
- package/dist/esmdev/foundation/misc/RnPromise.js +14 -14
- package/dist/esmdev/foundation/misc/Time.js +27 -27
- package/dist/esmdev/foundation/misc/WeakOption.js +14 -14
- package/dist/esmdev/foundation/misc/cache/Cache.js +2 -2
- package/dist/esmdev/foundation/misc/cache/SymbolWeakMap.js +8 -8
- package/dist/esmdev/foundation/physics/PhysicsWorldQuery.js +10 -10
- package/dist/esmdev/foundation/physics/Rapier/RapierCharacterControllerStrategy.js +190 -190
- package/dist/esmdev/foundation/physics/Rapier/RapierPhysicsStrategy.js +241 -241
- package/dist/esmdev/foundation/physics/Rapier/RapierPhysicsWorldQueryStrategy.js +3 -3
- package/dist/esmdev/foundation/physics/VRMSpring/CapsuleCollider.js +42 -42
- package/dist/esmdev/foundation/physics/VRMSpring/SphereCollider.js +27 -27
- package/dist/esmdev/foundation/physics/VRMSpring/VRMSpringBone.js +10 -10
- package/dist/esmdev/foundation/physics/VRMSpring/VRMSpringBonePhysicsStrategy.js +55 -55
- package/dist/esmdev/foundation/renderer/CGAPIResourceRepository.d.ts +74 -4
- package/dist/esmdev/foundation/renderer/CGAPIResourceRepository.js +4 -4
- package/dist/esmdev/foundation/renderer/Expression.js +6 -6
- package/dist/esmdev/foundation/renderer/Frame.js +12 -12
- package/dist/esmdev/foundation/renderer/FrameBuffer.js +28 -28
- package/dist/esmdev/foundation/renderer/FrameRenderer.d.ts +42 -0
- package/dist/esmdev/foundation/renderer/FrameRenderer.js +1 -0
- package/dist/esmdev/foundation/renderer/RenderPass.js +101 -101
- package/dist/esmdev/foundation/renderer/ShaderPropertyLayout.d.ts +77 -0
- package/dist/esmdev/foundation/renderer/ShaderPropertyLayout.js +61 -0
- package/dist/esmdev/foundation/renderer/TemporalAA/PreviousFrameDataTracker.js +10 -10
- package/dist/esmdev/foundation/renderer/TemporalAA/TemporalAASystem.d.ts +9 -3
- package/dist/esmdev/foundation/renderer/TemporalAA/TemporalAASystem.js +97 -83
- package/dist/esmdev/foundation/renderer/lightCluster/LightClusterSystem.d.ts +12 -0
- package/dist/esmdev/foundation/renderer/lightCluster/LightClusterSystem.js +193 -155
- package/dist/esmdev/foundation/renderer/lightCluster/LightClusterSystemStub.js +3 -3
- package/dist/esmdev/foundation/renderer/pipelines/DeferredRenderPipeline.js +6 -6
- package/dist/esmdev/foundation/renderer/pipelines/ForwardRenderPipeline.d.ts +82 -176
- package/dist/esmdev/foundation/renderer/pipelines/ForwardRenderPipeline.js +440 -1108
- package/dist/esmdev/foundation/renderer/pipelines/RaymarchingRenderer.d.ts +263 -0
- package/dist/esmdev/foundation/renderer/pipelines/RaymarchingRenderer.js +858 -0
- package/dist/esmdev/foundation/system/Engine.d.ts +19 -44
- package/dist/esmdev/foundation/system/Engine.js +235 -601
- package/dist/esmdev/foundation/system/EngineState.d.ts +9 -3
- package/dist/esmdev/foundation/system/EngineState.js +4 -4
- package/dist/esmdev/foundation/system/EventPubSub.js +8 -8
- package/dist/esmdev/foundation/system/GpuDriverWorkarounds.d.ts +50 -0
- package/dist/esmdev/foundation/system/GpuDriverWorkarounds.js +93 -0
- package/dist/esmdev/foundation/system/InputManager.js +56 -56
- package/dist/esmdev/foundation/system/ModuleManager.js +6 -6
- package/dist/esmdev/foundation/system/index.d.ts +1 -0
- package/dist/esmdev/foundation/system/index.js +2 -1
- package/dist/esmdev/foundation/textures/AbstractReadableRenderTargetTexture.d.ts +39 -0
- package/dist/esmdev/foundation/textures/AbstractReadableRenderTargetTexture.js +88 -0
- package/dist/esmdev/foundation/textures/AbstractRenderTargetTexture.d.ts +60 -0
- package/dist/esmdev/foundation/textures/AbstractRenderTargetTexture.js +59 -0
- package/dist/esmdev/foundation/textures/AbstractTexture.js +49 -49
- package/dist/esmdev/foundation/textures/CubeTexture.js +35 -42
- package/dist/esmdev/foundation/textures/RenderBuffer.js +16 -17
- package/dist/esmdev/foundation/textures/RenderTargetTexture.d.ts +5 -67
- package/dist/esmdev/foundation/textures/RenderTargetTexture.js +18 -140
- package/dist/esmdev/foundation/textures/RenderTargetTexture2DArray.d.ts +5 -71
- package/dist/esmdev/foundation/textures/RenderTargetTexture2DArray.js +34 -177
- package/dist/esmdev/foundation/textures/RenderTargetTextureCube.d.ts +8 -50
- package/dist/esmdev/foundation/textures/RenderTargetTextureCube.js +31 -88
- package/dist/esmdev/foundation/textures/Sampler.js +24 -24
- package/dist/esmdev/foundation/textures/Texture.d.ts +19 -1
- package/dist/esmdev/foundation/textures/Texture.js +133 -146
- package/dist/esmdev/foundation/textures/TextureArray.js +13 -16
- package/dist/esmdev/foundation/textures/TextureDataFloat.js +26 -26
- package/dist/esmdev/foundation/textures/VideoTexture.d.ts +11 -0
- package/dist/esmdev/foundation/textures/VideoTexture.js +47 -46
- package/dist/esmdev/foundation/textures/decodeBasisImage.d.ts +14 -0
- package/dist/esmdev/foundation/textures/decodeBasisImage.js +14 -0
- package/dist/esmdev/foundation/textures/index.d.ts +2 -0
- package/dist/esmdev/foundation/textures/index.js +3 -1
- package/dist/esmdev/types/glTF2.d.ts +9 -0
- package/dist/esmdev/types/glTF2.js +1 -1
- package/dist/esmdev/version.js +2 -2
- package/dist/esmdev/webgl/ComponentDataAccessorGLSL.d.ts +9 -0
- package/dist/esmdev/webgl/ComponentDataAccessorGLSL.js +146 -0
- package/dist/esmdev/webgl/InstanceSidTable.js +62 -62
- package/dist/esmdev/webgl/MultiDraw.d.ts +1 -1
- package/dist/esmdev/webgl/MultiDraw.js +4 -4
- package/dist/esmdev/webgl/MultiDrawRepository.js +34 -34
- package/dist/esmdev/webgl/ShaderPropertyAccessorGLSL.d.ts +11 -0
- package/dist/esmdev/webgl/ShaderPropertyAccessorGLSL.js +142 -0
- package/dist/esmdev/webgl/WebGLCompressedTextures.d.ts +48 -0
- package/dist/esmdev/webgl/WebGLCompressedTextures.js +105 -0
- package/dist/esmdev/webgl/WebGLContextWrapper.d.ts +9 -52
- package/dist/esmdev/webgl/WebGLContextWrapper.js +127 -229
- package/dist/esmdev/webgl/WebGLCubeTextureFileLoader.d.ts +38 -0
- package/dist/esmdev/webgl/WebGLCubeTextureFileLoader.js +178 -0
- package/dist/esmdev/webgl/WebGLCubeTextures.d.ts +92 -0
- package/dist/esmdev/webgl/WebGLCubeTextures.js +358 -0
- package/dist/esmdev/webgl/WebGLDataTexture.d.ts +108 -0
- package/dist/esmdev/webgl/WebGLDataTexture.js +337 -0
- package/dist/esmdev/webgl/WebGLDrawState.d.ts +84 -0
- package/dist/esmdev/webgl/WebGLDrawState.js +164 -0
- package/dist/esmdev/webgl/WebGLExternalState.d.ts +43 -0
- package/dist/esmdev/webgl/WebGLExternalState.js +70 -0
- package/dist/esmdev/webgl/WebGLFrameRenderer.d.ts +32 -0
- package/dist/esmdev/webgl/WebGLFrameRenderer.js +155 -0
- package/dist/esmdev/webgl/WebGLFramebuffers.d.ts +142 -0
- package/dist/esmdev/webgl/WebGLFramebuffers.js +245 -0
- package/dist/esmdev/webgl/WebGLGpuTimer.js +32 -32
- package/dist/esmdev/webgl/WebGLMaterialParameters.d.ts +47 -0
- package/dist/esmdev/webgl/WebGLMaterialParameters.js +81 -0
- package/dist/esmdev/webgl/WebGLMeshResources.d.ts +115 -0
- package/dist/esmdev/webgl/WebGLMeshResources.js +303 -0
- package/dist/esmdev/webgl/WebGLMorphUniformBuffers.d.ts +66 -0
- package/dist/esmdev/webgl/WebGLMorphUniformBuffers.js +272 -0
- package/dist/esmdev/webgl/WebGLResourceRepository.d.ts +100 -178
- package/dist/esmdev/webgl/WebGLResourceRepository.js +345 -2592
- package/dist/esmdev/webgl/WebGLSamplers.d.ts +78 -0
- package/dist/esmdev/webgl/WebGLSamplers.js +143 -0
- package/dist/esmdev/webgl/WebGLShaderProgramBuilder.d.ts +40 -0
- package/dist/esmdev/webgl/WebGLShaderProgramBuilder.js +208 -0
- package/dist/esmdev/webgl/WebGLShaderPrograms.d.ts +88 -0
- package/dist/esmdev/webgl/WebGLShaderPrograms.js +240 -0
- package/dist/esmdev/webgl/WebGLStereoUtil.d.ts +0 -27
- package/dist/esmdev/webgl/WebGLStereoUtil.js +36 -115
- package/dist/esmdev/webgl/WebGLStrategyDataUploader.d.ts +152 -0
- package/dist/esmdev/webgl/WebGLStrategyDataUploader.js +370 -0
- package/dist/esmdev/webgl/WebGLStrategyMeshBatchRenderer.d.ts +40 -0
- package/dist/esmdev/webgl/WebGLStrategyMeshBatchRenderer.js +213 -0
- package/dist/esmdev/webgl/WebGLStrategyMeshDrawer.d.ts +92 -0
- package/dist/esmdev/webgl/WebGLStrategyMeshDrawer.js +300 -0
- package/dist/esmdev/webgl/WebGLStrategyWebGL2.d.ts +7 -360
- package/dist/esmdev/webgl/WebGLStrategyWebGL2.js +75 -1856
- package/dist/esmdev/webgl/WebGLTextureUnitState.d.ts +79 -0
- package/dist/esmdev/webgl/WebGLTextureUnitState.js +149 -0
- package/dist/esmdev/webgl/WebGLTextureUploads.d.ts +106 -0
- package/dist/esmdev/webgl/WebGLTextureUploads.js +168 -0
- package/dist/esmdev/webgl/WebGLTextures.d.ts +316 -0
- package/dist/esmdev/webgl/WebGLTextures.js +577 -0
- package/dist/esmdev/webgl/WebGLUniformBuffers.d.ts +35 -0
- package/dist/esmdev/webgl/WebGLUniformBuffers.js +89 -0
- package/dist/esmdev/webgl/WebGLUniforms.d.ts +117 -0
- package/dist/esmdev/webgl/WebGLUniforms.js +283 -0
- package/dist/esmdev/webgl/WebGLVertexBuffers.d.ts +172 -0
- package/dist/esmdev/webgl/WebGLVertexBuffers.js +391 -0
- package/dist/esmdev/webgl/debug/BufferLayoutDecoder.d.ts +4 -4
- package/dist/esmdev/webgl/debug/BufferLayoutDecoder.js +52 -59
- package/dist/esmdev/webgl/debug/ShaderParameterDebugger.js +17 -17
- package/dist/esmdev/webgl/debug/types.d.ts +2 -2
- package/dist/esmdev/webgl/getRenderingStrategy.d.ts +2 -2
- package/dist/esmdev/webgl/getRenderingStrategy.js +5 -5
- package/dist/esmdev/webgl/main.d.ts +4 -17
- package/dist/esmdev/webgl/main.js +5 -3
- package/dist/esmdev/webgl/readColorAttachmentAsRgba8.d.ts +36 -0
- package/dist/esmdev/webgl/readColorAttachmentAsRgba8.js +47 -0
- package/dist/esmdev/webgl/shaderity_shaders/ClassicSingleShader/ClassicSingleShader.frag.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/ClassicSingleShader/ClassicSingleShader.vert.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/ColorGradingUsingLUTsShader/ColorGradingUsingLUTsShader.vert.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/DepthEncodeSingleShader/DepthEncodeSingleShader.vert.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/DepthMomentEncodeShader/DepthMomentEncodeShader.vert.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/DetectHighLuminanceAndCorrectShader/DetectHighLuminanceAndCorrectShader.vert.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/EntityUIDOutputSingleShader/EntityUIDOutputSingleShader.vert.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/EnvConstantScreenSpaceShader/EnvConstantScreenSpaceShader.frag.js +12 -0
- package/dist/esmdev/webgl/shaderity_shaders/EnvConstantScreenSpaceShader/EnvConstantScreenSpaceShader.vert.js +12 -0
- package/dist/esmdev/webgl/shaderity_shaders/EnvConstantSingleShader/EnvConstantSingleShader.frag.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/EnvConstantSingleShader/EnvConstantSingleShader.vert.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/FlatSingleShader/FlatSingleShader.frag.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/FlatSingleShader/FlatSingleShader.vert.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/GammaCorrectionShader/GammaCorrectionShader.frag.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/MToon0xSingleShader/MToon0xSingleShader.frag.glsl.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/MToon0xSingleShader/MToon0xSingleShader.vert.glsl.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.frag.glsl.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.vert.glsl.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/MatCapShader/MatCapShader.vert.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/MotionVectorShader/MotionVectorShader.vert.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/PanoramaToCubeShader/PanoramaToCubeShader.frag.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/ParaboloidDepthMomentEncodeShader/ParaboloidDepthMomentEncodeShader.frag.glsl.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/ParaboloidDepthMomentEncodeShader/ParaboloidDepthMomentEncodeShader.vert.glsl.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/PbrSingleShader/PbrSingleShader.frag.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/PbrSingleShader/PbrSingleShader.vert.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/PrefilterIBLShader/PrefilterIBLShader.frag.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/ShadowMapDecodeClassicSingleShader/ShadowMapDecodeClassicSingleShader.vert.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/SummedAreaTableShader/SummedAreaTableShader.frag.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/ToneMappingShader/ToneMappingShader.frag.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/VarianceShadowMapDecodeClassicShader/VarianceShadowMapDecodeClassicShader.vert.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/common/iblDefinition.glsl.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/common/morphVariables.glsl.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/common/opticalDefinition.glsl.js +5 -2
- package/dist/esmdev/webgl/shaderity_shaders/common/prerequisites.glsl.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/nodes/ClassicShader.glsl.js +2 -2
- package/dist/esmdev/webgl/shaderity_shaders/nodes/PbrShader.glsl.js +2 -2
- package/dist/esmdev/webgl/shaders/RaymarchingShaderPart.d.ts +2 -2
- package/dist/esmdev/webgl/shaders/RaymarchingShaderPart.js +35 -23
- package/dist/esmdev/webgl/shaders/RaymarchingShadowShaderPart.js +17 -17
- package/dist/esmdev/webgl/shaders/StandardShaderPart.d.ts +3 -3
- package/dist/esmdev/webgl/shaders/StandardShaderPart.js +15 -15
- package/dist/esmdev/webgl/shaders/glslCommonChunks.d.ts +2 -2
- package/dist/esmdev/webgl/shaders/glslCommonChunks.js +1 -1
- package/dist/esmdev/webgl/shaders/nodes/BlockBeginShader.js +10 -10
- package/dist/esmdev/webgl/shaders/nodes/BlockEndShader.js +10 -10
- package/dist/esmdev/webgl/shaders/nodes/ConstantVariableShader.d.ts +2 -2
- package/dist/esmdev/webgl/shaders/nodes/ConstantVariableShader.js +27 -27
- package/dist/esmdev/webgl/shaders/nodes/DiscardShader.d.ts +1 -1
- package/dist/esmdev/webgl/shaders/nodes/DiscardShader.js +8 -8
- package/dist/esmdev/webgl/shaders/nodes/EndShader.d.ts +2 -2
- package/dist/esmdev/webgl/shaders/nodes/EndShader.js +9 -9
- package/dist/esmdev/webgl/shaders/nodes/OutDistance.d.ts +1 -1
- package/dist/esmdev/webgl/shaders/nodes/OutDistance.js +17 -17
- package/dist/esmdev/webgl/shaders/nodes/OutUnion.js +12 -12
- package/dist/esmdev/webgl/shaders/nodes/RaymarchObjectIdUniform.js +11 -11
- package/dist/esmdev/webgl/shaders/nodes/SdApplyTransform.js +12 -12
- package/dist/esmdev/webgl/shaders/nodes/SdApplyWorldMatrix.d.ts +1 -1
- package/dist/esmdev/webgl/shaders/nodes/SdApplyWorldMatrix.js +13 -13
- package/dist/esmdev/webgl/shaders/nodes/Texture2DShader.js +27 -27
- package/dist/esmdev/webgl/shaders/nodes/UniformDataShader.js +27 -27
- package/dist/esmdev/webgl/textureLoader/KTX2TextureLoader.d.ts +1 -1
- package/dist/esmdev/webgl/textureLoader/KTX2TextureLoader.js +36 -30
- package/dist/esmdev/webgpu/AttributeReader.d.ts +18 -0
- package/dist/esmdev/webgpu/AttributeReader.js +57 -0
- package/dist/esmdev/webgpu/GpuCullingRegistry.js +94 -94
- package/dist/esmdev/webgpu/GpuDeformRegistry.js +53 -53
- package/dist/esmdev/webgpu/RangeAllocator.js +16 -16
- package/dist/esmdev/webgpu/ShaderPropertyAccessorWGSL.d.ts +11 -0
- package/dist/esmdev/webgpu/ShaderPropertyAccessorWGSL.js +131 -0
- package/dist/esmdev/webgpu/WebGpuBindGroups.d.ts +131 -0
- package/dist/esmdev/webgpu/WebGpuBindGroups.js +377 -0
- package/dist/esmdev/webgpu/WebGpuBufferArena.js +21 -21
- package/dist/esmdev/webgpu/WebGpuCompressedTextures.d.ts +38 -0
- package/dist/esmdev/webgpu/WebGpuCompressedTextures.js +155 -0
- package/dist/esmdev/webgpu/WebGpuCubeTextureShaders.d.ts +1 -0
- package/dist/esmdev/webgpu/WebGpuCubeTextureShaders.js +68 -0
- package/dist/esmdev/webgpu/WebGpuCubeTextures.d.ts +72 -0
- package/dist/esmdev/webgpu/WebGpuCubeTextures.js +340 -0
- package/dist/esmdev/webgpu/WebGpuDeviceWrapper.js +7 -7
- package/dist/esmdev/webgpu/WebGpuDraw.d.ts +63 -0
- package/dist/esmdev/webgpu/WebGpuDraw.js +133 -0
- package/dist/esmdev/webgpu/WebGpuDrawParameters.d.ts +61 -0
- package/dist/esmdev/webgpu/WebGpuDrawParameters.js +120 -0
- package/dist/esmdev/webgpu/WebGpuExternalRenderPass.d.ts +44 -0
- package/dist/esmdev/webgpu/WebGpuExternalRenderPass.js +115 -0
- package/dist/esmdev/webgpu/WebGpuFrame.d.ts +55 -0
- package/dist/esmdev/webgpu/WebGpuFrame.js +89 -0
- package/dist/esmdev/webgpu/WebGpuFrameRenderer.d.ts +25 -0
- package/dist/esmdev/webgpu/WebGpuFrameRenderer.js +248 -0
- package/dist/esmdev/webgpu/WebGpuGpuCulling.js +200 -454
- package/dist/esmdev/webgpu/WebGpuGpuCullingShaders.d.ts +34 -0
- package/dist/esmdev/webgpu/WebGpuGpuCullingShaders.js +264 -0
- package/dist/esmdev/webgpu/WebGpuGpuTimer.js +52 -52
- package/dist/esmdev/webgpu/WebGpuLightClusterBuilder.js +39 -194
- package/dist/esmdev/webgpu/WebGpuLightClusterShaders.d.ts +14 -0
- package/dist/esmdev/webgpu/WebGpuLightClusterShaders.js +161 -0
- package/dist/esmdev/webgpu/WebGpuMipmapGenerator.d.ts +54 -0
- package/dist/esmdev/webgpu/WebGpuMipmapGenerator.js +187 -0
- package/dist/esmdev/webgpu/WebGpuMipmapShaders.d.ts +1 -0
- package/dist/esmdev/webgpu/WebGpuMipmapShaders.js +34 -0
- package/dist/esmdev/webgpu/WebGpuRenderBundles.d.ts +117 -0
- package/dist/esmdev/webgpu/WebGpuRenderBundles.js +299 -0
- package/dist/esmdev/webgpu/WebGpuRenderPassEncoders.d.ts +140 -0
- package/dist/esmdev/webgpu/WebGpuRenderPassEncoders.js +611 -0
- package/dist/esmdev/webgpu/WebGpuRenderPipelines.d.ts +75 -0
- package/dist/esmdev/webgpu/WebGpuRenderPipelines.js +249 -0
- package/dist/esmdev/webgpu/WebGpuRenderTargetTextures.d.ts +78 -0
- package/dist/esmdev/webgpu/WebGpuRenderTargetTextures.js +108 -0
- package/dist/esmdev/webgpu/WebGpuResourceRepository.d.ts +52 -322
- package/dist/esmdev/webgpu/WebGpuResourceRepository.js +332 -3127
- package/dist/esmdev/webgpu/WebGpuSamplers.d.ts +45 -0
- package/dist/esmdev/webgpu/WebGpuSamplers.js +58 -0
- package/dist/esmdev/webgpu/WebGpuShaderProgramBuilder.d.ts +25 -0
- package/dist/esmdev/webgpu/WebGpuShaderProgramBuilder.js +108 -0
- package/dist/esmdev/webgpu/WebGpuStorageBuffers.d.ts +77 -0
- package/dist/esmdev/webgpu/WebGpuStorageBuffers.js +191 -0
- package/dist/esmdev/webgpu/WebGpuStrategyBasic.d.ts +2 -73
- package/dist/esmdev/webgpu/WebGpuStrategyBasic.js +63 -781
- package/dist/esmdev/webgpu/WebGpuStrategyStorage.d.ts +62 -0
- package/dist/esmdev/webgpu/WebGpuStrategyStorage.js +267 -0
- package/dist/esmdev/webgpu/WebGpuTextureReadback.d.ts +111 -0
- package/dist/esmdev/webgpu/WebGpuTextureReadback.js +188 -0
- package/dist/esmdev/webgpu/WebGpuTextureReadbackShaders.d.ts +4 -0
- package/dist/esmdev/webgpu/WebGpuTextureReadbackShaders.js +34 -0
- package/dist/esmdev/webgpu/WebGpuTextureUploads.d.ts +109 -0
- package/dist/esmdev/webgpu/WebGpuTextureUploads.js +197 -0
- package/dist/esmdev/webgpu/WebGpuTextures.d.ts +196 -0
- package/dist/esmdev/webgpu/WebGpuTextures.js +344 -0
- package/dist/esmdev/webgpu/WebGpuVertexBuffers.d.ts +142 -0
- package/dist/esmdev/webgpu/WebGpuVertexBuffers.js +281 -0
- package/dist/esmdev/webgpu/WebGpuVertexDeformer.js +106 -284
- package/dist/esmdev/webgpu/WebGpuVertexDeformerShaders.d.ts +7 -0
- package/dist/esmdev/webgpu/WebGpuVertexDeformerShaders.js +134 -0
- package/dist/esmdev/webgpu/WebGpuVertexShaderDefinitions.d.ts +16 -0
- package/dist/esmdev/webgpu/WebGpuVertexShaderDefinitions.js +216 -0
- package/dist/esmdev/webgpu/assertArrayBufferView.d.ts +9 -0
- package/dist/esmdev/webgpu/assertArrayBufferView.js +10 -0
- package/dist/esmdev/webgpu/main.d.ts +2 -16
- package/dist/esmdev/webgpu/main.js +3 -3
- package/dist/esmdev/webgpu/padCompressedRowsForUpload.d.ts +20 -0
- package/dist/esmdev/webgpu/padCompressedRowsForUpload.js +20 -0
- package/dist/esmdev/webgpu/removeRowPadding.d.ts +21 -0
- package/dist/esmdev/webgpu/removeRowPadding.js +23 -0
- package/dist/esmdev/webgpu/shaderity_shaders/ClassicSingleShader/ClassicSingleShader.frag.js +2 -2
- package/dist/esmdev/webgpu/shaderity_shaders/EnvConstantScreenSpaceShader/EnvConstantScreenSpaceShader.frag.wgsl.js +12 -0
- package/dist/esmdev/webgpu/shaderity_shaders/EnvConstantScreenSpaceShader/EnvConstantScreenSpaceShader.vert.wgsl.js +12 -0
- package/dist/esmdev/webgpu/shaderity_shaders/EnvConstantSingleShader/EnvConstantSingleShader.frag.js +2 -2
- package/dist/esmdev/webgpu/shaderity_shaders/EnvConstantSingleShader/EnvConstantSingleShader.vert.js +2 -2
- package/dist/esmdev/webgpu/shaderity_shaders/FlatSingleShader/FlatSingleShader.frag.js +2 -2
- package/dist/esmdev/webgpu/shaderity_shaders/GammaCorrectionShader/GammaCorrectionShader.frag.js +2 -2
- package/dist/esmdev/webgpu/shaderity_shaders/MToon0xSingleShader/MToon0xSingleShader.frag.wgsl.js +2 -2
- package/dist/esmdev/webgpu/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.frag.wgsl.js +2 -2
- package/dist/esmdev/webgpu/shaderity_shaders/MToon1SingleShader/MToon1SingleShader.vert.wgsl.js +2 -2
- package/dist/esmdev/webgpu/shaderity_shaders/PanoramaToCubeShader/PanoramaToCubeShader.frag.wgsl.js +2 -2
- package/dist/esmdev/webgpu/shaderity_shaders/ParaboloidDepthMomentEncodeShader/ParaboloidDepthMomentEncodeShader.frag.wgsl.js +2 -2
- package/dist/esmdev/webgpu/shaderity_shaders/ParaboloidDepthMomentEncodeShader/ParaboloidDepthMomentEncodeShader.vert.wgsl.js +2 -2
- package/dist/esmdev/webgpu/shaderity_shaders/PbrSingleShader/PbrSingleShader.frag.js +2 -2
- package/dist/esmdev/webgpu/shaderity_shaders/PrefilterIBLShader/PrefilterIBLShader.frag.wgsl.js +2 -2
- package/dist/esmdev/webgpu/shaderity_shaders/ToneMappingShader/ToneMappingShader.frag.wgsl.js +2 -2
- package/dist/esmdev/webgpu/shaderity_shaders/common/iblDefinition.wgsl.js +2 -2
- package/dist/esmdev/webgpu/shaderity_shaders/common/opticalDefinition.wgsl.js +5 -2
- package/dist/esmdev/webgpu/shaderity_shaders/common/processGeometry.wgsl.js +2 -2
- package/dist/esmdev/webgpu/shaderity_shaders/nodes/ClassicShader.wgsl.js +2 -2
- package/dist/esmdev/webgpu/shaderity_shaders/nodes/PbrShader.wgsl.js +2 -2
- package/dist/esmdev/webgpu/wgslCommonChunks.d.ts +2 -2
- package/dist/esmdev/webgpu/wgslCommonChunks.js +1 -1
- package/dist/esmdev/xr/WebARSystem.js +69 -69
- package/dist/esmdev/xr/WebXRSystem.d.ts +0 -4
- package/dist/esmdev/xr/WebXRSystem.js +155 -160
- package/package.json +1 -1
- package/dist/esm/foundation/definitions/ProcessApproach.d.ts +0 -21
- package/dist/esm/foundation/definitions/ProcessApproach.js +0 -1
- package/dist/esm/foundation/materials/core/ShaderHandler.d.ts +0 -125
- package/dist/esm/foundation/materials/core/ShaderHandler.js +0 -48
- package/dist/esmdev/foundation/definitions/ProcessApproach.d.ts +0 -21
- package/dist/esmdev/foundation/definitions/ProcessApproach.js +0 -60
- package/dist/esmdev/foundation/materials/core/ShaderHandler.d.ts +0 -125
- package/dist/esmdev/foundation/materials/core/ShaderHandler.js +0 -416
|
@@ -1 +1 @@
|
|
|
1
|
-
import{RnObject as a}from"../core/RnObject.js";import{
|
|
1
|
+
import{RnObject as a}from"../core/RnObject.js";import{RenderBackend as R}from"../definitions/RenderBackend.js";import{RenderBufferTarget as r}from"../definitions/RenderBufferTarget.js";import{RenderTargetTexture as n}from"../textures/RenderTargetTexture.js";import{RenderTargetTexture2DArray as h}from"../textures/RenderTargetTexture2DArray.js";import{RenderTargetTextureCube as u}from"../textures/RenderTargetTextureCube.js";import{CGAPIResourceRepository as o}from"./CGAPIResourceRepository.js";var p=class extends a{constructor(t){super();this.hR=[];this.cgApiResourceUid=o.InvalidCGAPIResourceUid;this.width=0;this.height=0;this.AR=new Map;this.i=t}get colorAttachmentsRenderBufferTargets(){return Array.from(this.AR.keys())}get colorAttachments(){return this.hR}get depthAttachment(){return this.RR}get stencilAttachment(){return this.gR}get depthStencilAttachment(){return this.mR}getColorAttachedRenderTargetTexture(t){if(!(this.hR[t]==null||!(this.hR[t]instanceof n||this.hR[t]instanceof h||this.hR[t]instanceof u)))return this.hR[t]}getDepthAttachedRenderTargetTexture(){if(this.RR instanceof n||this.RR instanceof h||this.RR instanceof u)return this.RR}create(t,e){this.width=t,this.height=e;let s=this.i.cgApiResourceRepository;return this.cgApiResourceUid=s.createFrameBufferObject(),this.cgApiResourceUid}get framebufferUID(){return this.cgApiResourceUid}setColorAttachmentAt(t,e){return e.width!==this.width||e.height!==this.height?!1:(this.hR[t]=e,this.i.cgApiResourceRepository.attachColorBufferToFrameBufferObject(this,t,e),this.AR.set(r.from(t),e),!0)}setColorAttachmentLayerAt(t,e,s,i){if(e.width!==this.width||e.height!==this.height)return!1;this.hR[t]=e;let c=this.i.cgApiResourceRepository;return this.i.engineState.currentRenderBackend===R.WebGPU?e instanceof h&&e.changeRenderTargetLayerWebGPU(s):c.attachColorBufferLayerToFrameBufferObject(this,t,e,s,i),this.AR.set(r.from(t),e),!0}setColorAttachmentCubeAt(t,e,s,i){return i.width!==this.width||i.height!==this.height?!1:(this.hR[t]=i,this.i.cgApiResourceRepository.attachColorBufferCubeToFrameBufferObject(this,t,e,s,i),i.createCubeTextureViewAsRenderTarget(e,s),this.AR.set(r.from(t),i),!0)}setDepthAttachment(t){return t.width!==this.width||t.height!==this.height?!1:(this.RR=t,this.i.cgApiResourceRepository.attachDepthBufferToFrameBufferObject(this,t),!0)}setStencilAttachment(t){return t.width!==this.width||t.height!==this.height?!1:(this.gR=t,this.i.cgApiResourceRepository.attachStencilBufferToFrameBufferObject(this,t),!0)}setDepthStencilAttachment(t){return t.width!==this.width||t.height!==this.height?!1:(this.mR=t,this.i.cgApiResourceRepository.attachDepthStencilBufferToFrameBufferObject(this,t),!0)}resize(t,e){this.i.cgApiResourceRepository.deleteFrameBufferObject(this.cgApiResourceUid),this.cgApiResourceUid=o.InvalidCGAPIResourceUid,this.width=0,this.height=0,this.create(t,e),this.depthAttachment&&(this.depthAttachment.resize(t,e),this.setDepthAttachment(this.depthAttachment)),this.depthStencilAttachment&&(this.depthStencilAttachment.resize(t,e),this.setDepthStencilAttachment(this.depthStencilAttachment)),this.stencilAttachment&&(this.stencilAttachment.resize(t,e),this.setStencilAttachment(this.stencilAttachment));for(let i=0;i<this.colorAttachments.length;i++)this.colorAttachments[i].resize(t,e),this.setColorAttachmentAt(i,this.colorAttachments[i])}destroy3DAPIResources(){this.i.cgApiResourceRepository.deleteFrameBufferObject(this.cgApiResourceUid),this.cgApiResourceUid=o.InvalidCGAPIResourceUid,this.width=0,this.height=0,this.depthAttachment&&(this.depthAttachment.destroy3DAPIResources(),this.RR=void 0),this.depthStencilAttachment&&(this.depthStencilAttachment.destroy3DAPIResources(),this.mR=void 0),this.stencilAttachment&&(this.stencilAttachment.destroy3DAPIResources(),this.gR=void 0);for(let e of this.colorAttachments)e.destroy3DAPIResources();this.AR=new Map}whichColorAttachment(t){return this.hR.indexOf(t)}};export{p as FrameBuffer};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Expression } from './Expression';
|
|
2
|
+
/**
|
|
3
|
+
* Runs the Render stage of `Engine.process` for one graphics backend, and measures its GPU time.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* `Engine.process` runs the Load and Logic stages itself, the same way for every backend, and hands the
|
|
7
|
+
* Render stage to the frame renderer of the backend it was initialized with (`WebGLFrameRenderer` or
|
|
8
|
+
* `WebGpuFrameRenderer`, provided by the backend modules). An engine without a backend
|
|
9
|
+
* (`RenderBackend.None`) has no frame renderer and renders nothing.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface FrameRenderer {
|
|
14
|
+
/**
|
|
15
|
+
* Whether the Load and Logic stages must run in this frame even when no component changed.
|
|
16
|
+
* WebGPU needs them until its render bundles can be reused (see `EngineState.webgpuRenderBundleMode`).
|
|
17
|
+
*/
|
|
18
|
+
readonly requiresNonRenderStages: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Renders the render passes of the expressions.
|
|
21
|
+
*
|
|
22
|
+
* @param expressions - The expressions to render, in order
|
|
23
|
+
* @param renderPassTickCount - The tick count of the first render pass of this frame
|
|
24
|
+
* @returns The tick count after the last render pass of this frame
|
|
25
|
+
*/
|
|
26
|
+
render(expressions: Expression[], renderPassTickCount: number): number;
|
|
27
|
+
/** Whether the GPU time can be measured in this environment. */
|
|
28
|
+
readonly isGpuTimerSupported: boolean;
|
|
29
|
+
/** The GPU time of the latest measured frame, in milliseconds. See `Engine.gpuTimeMilliseconds`. */
|
|
30
|
+
readonly lastGpuTimeMilliseconds: number | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The GPU time of each pass of the latest measured frame, in milliseconds.
|
|
33
|
+
* See `Engine.gpuPassTimesMilliseconds`.
|
|
34
|
+
*/
|
|
35
|
+
readonly lastPassGpuTimesMilliseconds: ReadonlyMap<string, number> | undefined;
|
|
36
|
+
/** Starts measuring the GPU time of a frame. */
|
|
37
|
+
beginGpuTimer(): void;
|
|
38
|
+
/** Stops measuring the GPU time of a frame. */
|
|
39
|
+
endGpuTimer(): void;
|
|
40
|
+
/** Releases the resources of the frame renderer. */
|
|
41
|
+
destroy(): void;
|
|
42
|
+
}
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{flattenHierarchy as c}from"../components/SceneGraph/SceneGraphOps.js";import{WellKnownComponentTIDs as d}from"../components/WellKnownComponentTIDs.js";import{RnObject as f}from"../core/RnObject.js";import{PrimitiveMode as l}from"../definitions/PrimitiveMode.js";import{Primitive as R}from"../geometry/Primitive.js";import{MutableVector4 as h}from"../math/MutableVector4.js";import{Vector4 as p}from"../math/Vector4.js";var s=class s extends f{constructor(e){super();this.Gp=[];this.
|
|
1
|
+
import{flattenHierarchy as c}from"../components/SceneGraph/SceneGraphOps.js";import{WellKnownComponentTIDs as d}from"../components/WellKnownComponentTIDs.js";import{RnObject as f}from"../core/RnObject.js";import{PrimitiveMode as l}from"../definitions/PrimitiveMode.js";import{Primitive as R}from"../geometry/Primitive.js";import{MutableVector4 as h}from"../math/MutableVector4.js";import{Vector4 as p}from"../math/Vector4.js";var s=class s extends f{constructor(e){super();this.Gp=[];this.MR=[];this._R=[];this.vR=[];this.BR=[];this.ER=new Map;this.toClearColorBuffer=!1;this.toClearDepthBuffer=!0;this.toClearStencilBuffer=!1;this.isDepthTest=!0;this.depthWriteMask=!0;this.clearColor=p.fromCopyArray([1,1,1,1]);this.clearDepth=1;this.clearStencil=0;this._drawVertexNumberForBufferLessRendering=0;this._primitiveModeForBufferLessRendering=l.Triangles;this.isVrRendering=!0;this.isOutputForVr=!1;this._lastOpaqueIndex=-1;this._lastTranslucentIndex=-1;this._lastBlendWithZWriteIndex=-1;this._lastBlendWithoutZWriteIndex=-1;this._lastPrimitiveUids=[];this._lastPrimitives=null;this._lastTransformComponentsUpdateCount=-1;this._lastCameraControllerComponentsUpdateCount=-1;this._lastSceneGraphComponentsUpdateCount=-1;this._lastMultiDrawGroupVersion=-1;this._renderedSomethingBefore=!0;this._isChangedSortRenderResult=!1;this._toRenderOpaquePrimitives=!0;this._toRenderTranslucentPrimitives=!0;this._toRenderBlendWithZWritePrimitives=!0;this._toRenderBlendWithoutZWritePrimitives=!0;this.toRenderEffekseerEffects=!1;this.i=e,this._dummyPrimitiveForBufferLessRendering=new R(e),this.GR=++s.wu}setToRenderOpaquePrimitives(e){this._toRenderOpaquePrimitives=e,this.SR()}setToRenderBlendWithoutZWritePrimitives(e){this._toRenderBlendWithoutZWritePrimitives=e,this.SR()}setToRenderBlendWithZWritePrimitives(e){this._toRenderBlendWithZWritePrimitives=e,this.SR()}setToRenderTranslucentPrimitives(e){this._toRenderTranslucentPrimitives=e,this.SR()}isBufferLessRenderingMode(){return this._drawVertexNumberForBufferLessRendering>0}setBufferLessRendering(e,t,i){this._primitiveModeForBufferLessRendering=e,this._drawVertexNumberForBufferLessRendering=t,this.kp=i,this._renderedSomethingBefore=!0}setBufferLessFullScreenRendering(e){this._primitiveModeForBufferLessRendering=l.Triangles,this._drawVertexNumberForBufferLessRendering=3,this.kp=e,this._renderedSomethingBefore=!0}clone(){var t,i;let e=new s(this.i);return e.tryToSetUniqueName(`${this.uniqueName}_cloned`,!0),e.Gp=this.Gp.concat(),e.MR=this.MR.concat(),e._R=this._R.concat(),e.vR=this.vR.concat(),e.BR=this.BR.concat(),e.CR=this.CR,e.FR=this.FR,e.bR=this.bR,e.yR=(t=this.yR)==null?void 0:t.clone(),e.toClearColorBuffer=this.toClearColorBuffer,e.toClearDepthBuffer=this.toClearDepthBuffer,e.toClearStencilBuffer=this.toClearStencilBuffer,e.isDepthTest=this.isDepthTest,e.clearColor=this.clearColor.clone(),e.clearDepth=this.clearDepth,e.clearStencil=this.clearStencil,e.cameraComponent=this.cameraComponent,e.kp=this.kp,e.ER=new Map(this.ER),e.isVrRendering=this.isVrRendering,e.isOutputForVr=this.isOutputForVr,e._toRenderOpaquePrimitives=this._toRenderOpaquePrimitives,e._toRenderTranslucentPrimitives=this._toRenderTranslucentPrimitives,e._toRenderBlendWithoutZWritePrimitives=this._toRenderBlendWithoutZWritePrimitives,e.WR=this.WR,e.PR=this.PR,e.IR=(i=this.IR)==null?void 0:i.concat(),e._lastOpaqueIndex=this._lastOpaqueIndex,e._lastTranslucentIndex=this._lastTranslucentIndex,e._lastBlendWithZWriteIndex=this._lastBlendWithZWriteIndex,e._lastBlendWithoutZWriteIndex=this._lastBlendWithoutZWriteIndex,e._lastPrimitiveUids=this._lastPrimitiveUids.concat(),e._lastTransformComponentsUpdateCount=this._lastTransformComponentsUpdateCount,e._lastCameraControllerComponentsUpdateCount=this._lastCameraControllerComponentsUpdateCount,e._lastSceneGraphComponentsUpdateCount=this._lastSceneGraphComponentsUpdateCount,e._renderedSomethingBefore=this._renderedSomethingBefore,e._isChangedSortRenderResult=this._isChangedSortRenderResult,e}setPreRenderFunction(e){this.WR=e}setPostRenderFunction(e){this.PR=e}doPreRender(){this.WR!=null&&this.WR()}doPostRender(){this.PR!=null&&this.PR()}addEntities(e){for(let t of e){if(t===void 0)continue;let i=t.getSceneGraph();this.MR.push(i);let n=c(i,!1).map(a=>a.entity).filter(a=>a!=null),r=this.Gp.concat(n).reduce((a,u)=>(a.set(u.entityUID,u),a),new Map);this.Gp=Array.from(r.values())}this.SR(),this._R=[],this.wR()}SR(){this.vR=[],this.BR=[],this.DR()}get entities(){return this.Gp}clearEntities(){this.vR=[],this.BR=[],this._R=[],this.MR=[],this.Gp=[]}wR(){let e=i=>(i.parent&&e(i.parent),i);this._R=this.MR.map(i=>e(i));let t=new Set(this._R);this._R=Array.from(t)}DR(){this.vR=[],this.BR=[];for(let e of this.Gp){let t=e.getComponentByComponentTID(d.MeshComponentTID);if(t!=null&&t.mesh!=null){if(this.vR.push(t),!this._toRenderOpaquePrimitives&&t.mesh.isExistOpaque()||!this._toRenderTranslucentPrimitives&&t.mesh.isExistTranslucent()||!this._toRenderBlendWithZWritePrimitives&&t.mesh.isExistBlendWithZWrite()||!this._toRenderBlendWithoutZWritePrimitives&&t.mesh.isExistBlendWithoutZWrite())continue;this.BR.push(t)}}}get meshComponents(){return this.vR}get _optimizedMeshComponents(){return this.BR}get sceneTopLevelGraphComponents(){return this._R}setFramebuffer(e){this.CR=e,e!=null?this.setViewport(p.fromCopyArray([0,0,e.width,e.height])):this.yR=void 0}setRenderTargetColorAttachments(e){this.IR=e}getRenderTargetColorAttachments(){return this.IR}getFramebuffer(){return this.CR}removeFramebuffer(){this.CR=void 0}setViewport(e){this.yR!=null?this.yR.copyComponents(e):this.yR=h.fromCopyArray([e.x,e.y,e.z,e.w])}getViewport(){let e=this.yR;return e!=null&&(e=s.UR.copyComponents(e)),e}setScissorRect(e){if(e==null){this.TR=void 0;return}this.TR={x:Math.floor(e.x),y:Math.floor(e.y),width:Math.max(0,Math.floor(e.width)),height:Math.max(0,Math.floor(e.height))}}getScissorRect(){return this.TR}setResolveFramebuffer(e){this.FR=e}getResolveFramebuffer(){return this.FR}setResolveFramebuffer2(e){this.bR=e}getResolveFramebuffer2(){return this.bR}_copyFramebufferToResolveFramebuffersWebGL(){this.xR(this.FR),this.xR(this.bR)}xR(e){if(e==null)return;let t=this.i.webglResourceRepository,i=t.getWebGLResource(this.CR.cgApiResourceUid),o=t.getWebGLResource(e.cgApiResourceUid);if(i==null||o==null)return;let r=t.currentWebGLContextWrapper.getRawContextAsWebGL2();r.bindFramebuffer(r.READ_FRAMEBUFFER,i),r.bindFramebuffer(r.DRAW_FRAMEBUFFER,o),r.blitFramebuffer(0,0,this.CR.width,this.CR.height,0,0,e.width,e.height,r.COLOR_BUFFER_BIT|r.DEPTH_BUFFER_BIT,r.NEAREST),r.bindFramebuffer(r.READ_FRAMEBUFFER,null),r.bindFramebuffer(r.DRAW_FRAMEBUFFER,null)}_copyResolve1ToResolve2WebGpu(){var i,o;let e=(i=this.FR)!=null?i:this.CR;if(e==null||this.bR==null)return;let t=this.i.webGpuResourceRepository;for(let n=0;n<e.colorAttachments.length;n++)e.colorAttachments[n]==null||this.bR.colorAttachments[n]==null||!(e.colorAttachments[n]._textureResourceUid>=0)||((o=e.colorAttachments[n].sampleCount)!=null?o:1)>1||this.bR.colorAttachments[n]._textureResourceUid===-1||t.copyTextureData(e.colorAttachments[n]._textureResourceUid,this.bR.colorAttachments[n]._textureResourceUid)}setMaterialForPrimitive(e,t){this.ER.set(t.objectUID,new WeakRef(e))}setMaterial(e){this.kp=e}get material(){return this.kp}_getMaterialOf(e){var t;return(t=this.ER.get(e.objectUID))==null?void 0:t.deref()}getAppropriateMaterial(e){let t=this.ER.size!==0?this._getMaterialOf(e):void 0;return t!=null||(this.kp!=null?t=this.kp:t=e.material),t}get renderPassUID(){return this.GR}};s.UR=h.zero(),s.wu=-1;var m=s;export{m as RenderPass};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { IndexOf4Bytes, IndexOf16Bytes } from '../../types/CommonTypes';
|
|
2
|
+
import { type CompositionTypeEnum } from '../definitions/CompositionType';
|
|
3
|
+
import type { ShaderSemanticsName } from '../definitions/ShaderSemantics';
|
|
4
|
+
import type { ShaderSemanticsInfo } from '../definitions/ShaderSemanticsInfo';
|
|
5
|
+
import type { Engine } from '../system/Engine';
|
|
6
|
+
/**
|
|
7
|
+
* Layout of the material and global shader properties in the GPU instance data
|
|
8
|
+
* (the data texture in WebGL, the storage buffer in WebGPU).
|
|
9
|
+
*
|
|
10
|
+
* The GLSL and WGSL accessor generators (`get_<semantic>()`) and the debug decoder
|
|
11
|
+
* (`webgl/debug/BufferLayoutDecoder`) all read the data through this module, so they
|
|
12
|
+
* cannot disagree on where a value is or how it is fetched.
|
|
13
|
+
*
|
|
14
|
+
* Layout of a property:
|
|
15
|
+
* - Each material type is split into buffer views of `materialCountPerBufferView` materials.
|
|
16
|
+
* `offsets[bufferView]` is where the property starts in each buffer view, in vec4 units.
|
|
17
|
+
* - A material instance occupies `instanceSize` vec4s (`instanceSizeInScalar` scalars).
|
|
18
|
+
* - An array element occupies `vec4Size` vec4s, or `scalarSize` scalars for the helpers
|
|
19
|
+
* that read values that are not 16-byte aligned.
|
|
20
|
+
* - Global properties have a single offset and use instance 0.
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* The `fetch*` helper (defined in the prerequisites shader chunk of both backends) that reads
|
|
24
|
+
* a property, and the index it takes.
|
|
25
|
+
*/
|
|
26
|
+
export type ShaderPropertyFetch = {
|
|
27
|
+
/** Name of the helper function. */
|
|
28
|
+
functionName: string;
|
|
29
|
+
/** Shader variable of the index: `vec4_idx` (16-byte units) or `scalar_idx` (4-byte units). */
|
|
30
|
+
index: 'vec4_idx' | 'scalar_idx';
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Returns how a property of the given composition type is fetched,
|
|
34
|
+
* or `undefined` if the type cannot be stored in the GPU instance data.
|
|
35
|
+
*/
|
|
36
|
+
export declare function getShaderPropertyFetch(compositionType: CompositionTypeEnum): ShaderPropertyFetch | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Sizes that the index of a property is computed from.
|
|
39
|
+
*/
|
|
40
|
+
export type ShaderPropertyStrides = {
|
|
41
|
+
/** Whether the property is an array (indexed with `idxOfArray`). */
|
|
42
|
+
isArray: boolean;
|
|
43
|
+
/** Size of one value (one array element), in vec4 units. */
|
|
44
|
+
vec4Size: IndexOf16Bytes;
|
|
45
|
+
/** Number of scalars of one value (one array element), without padding. */
|
|
46
|
+
scalarSize: IndexOf4Bytes;
|
|
47
|
+
/** Size of the property of one material instance (all array elements), in vec4 units. */
|
|
48
|
+
instanceSize: IndexOf16Bytes;
|
|
49
|
+
/** Size of the property of one material instance in scalars, with each value padded to a vec4. */
|
|
50
|
+
instanceSizeInScalar: IndexOf4Bytes;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Returns the strides of a property. Arrays without `arrayLength` are treated as one element long.
|
|
54
|
+
*/
|
|
55
|
+
export declare function getShaderPropertyStrides(info: ShaderSemanticsInfo): ShaderPropertyStrides;
|
|
56
|
+
/**
|
|
57
|
+
* Returns the indices that the generated accessors compute (`vec4_idx` and `scalar_idx`) for one value.
|
|
58
|
+
* The GLSL and WGSL generators emit the same formula as shader expressions.
|
|
59
|
+
*
|
|
60
|
+
* @param strides - Strides of the property
|
|
61
|
+
* @param baseOffset - Where the property starts in the buffer view, in vec4 units
|
|
62
|
+
* @param instanceIndex - Index of the instance within the buffer view (0 for global properties)
|
|
63
|
+
* @param elementIndex - Index of the array element (0 for non-array properties)
|
|
64
|
+
* @returns `scalarIndex` is only read by the shaders for arrays; for other properties it is `vec4Index * 4`
|
|
65
|
+
*/
|
|
66
|
+
export declare function computeShaderPropertyIndices(strides: ShaderPropertyStrides, baseOffset: IndexOf16Bytes, instanceIndex: number, elementIndex: number): {
|
|
67
|
+
vec4Index: IndexOf16Bytes;
|
|
68
|
+
scalarIndex: IndexOf4Bytes;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Returns where a material property starts in each buffer view of the material type, in vec4 units.
|
|
72
|
+
*/
|
|
73
|
+
export declare function getMaterialPropertyOffsets(engine: Engine, materialTypeName: string, semantic: ShaderSemanticsName): IndexOf16Bytes[];
|
|
74
|
+
/**
|
|
75
|
+
* Returns where a global property starts, in vec4 units, or -1 if it is not registered.
|
|
76
|
+
*/
|
|
77
|
+
export declare function getGlobalPropertyOffset(engine: Engine, semantic: ShaderSemanticsName): IndexOf16Bytes;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{CompositionType as t}from"../definitions/CompositionType.js";var d=new Map([[t.Scalar,{functionName:"fetchElement",index:"vec4_idx"}],[t.Vec2,{functionName:"fetchElement",index:"vec4_idx"}],[t.Vec3,{functionName:"fetchElement",index:"vec4_idx"}],[t.Vec4,{functionName:"fetchElement",index:"vec4_idx"}],[t.Mat2,{functionName:"fetchMat2",index:"vec4_idx"}],[t.Mat3,{functionName:"fetchMat3",index:"vec4_idx"}],[t.Mat4,{functionName:"fetchMat4",index:"vec4_idx"}],[t.ScalarArray,{functionName:"fetchScalarNo16BytesAligned",index:"scalar_idx"}],[t.Vec2Array,{functionName:"fetchVec2No16BytesAligned",index:"scalar_idx"}],[t.Vec3Array,{functionName:"fetchVec3No16BytesAligned",index:"scalar_idx"}],[t.Vec4Array,{functionName:"fetchElement",index:"vec4_idx"}],[t.Mat2Array,{functionName:"fetchMat2No16BytesAligned",index:"scalar_idx"}],[t.Mat3Array,{functionName:"fetchMat3No16BytesAligned",index:"scalar_idx"}],[t.Mat4Array,{functionName:"fetchMat4",index:"vec4_idx"}],[t.Mat4x3Array,{functionName:"fetchMat4x3",index:"vec4_idx"}]]);function f(e){return d.get(e)}function y(e){var c;let n=t.isArray(e.compositionType),a=e.compositionType.getVec4SizeOfProperty(),i=e.compositionType.getNumberOfComponents(),r=n&&(c=e.arrayLength)!=null?c:1,o=Math.ceil(i/4)*4;return{isArray:n,vec4Size:a,scalarSize:i,instanceSize:a*r,instanceSizeInScalar:o*r}}function m(e,n,a,i){if(!e.isArray){let r=n+e.instanceSize*a;return{vec4Index:r,scalarIndex:r*4}}return{vec4Index:n+e.instanceSize*a+e.vec4Size*i,scalarIndex:n*4+e.instanceSizeInScalar*a+e.scalarSize*i}}function p(e,n,a){return e.materialRepository.getLocationOffsetOfMemberOfMaterial(e,n,a)}function x(e,n){return e.globalDataRepository.getLocationOffsetOfProperty(n)}export{m as computeShaderPropertyIndices,x as getGlobalPropertyOffset,p as getMaterialPropertyOffsets,f as getShaderPropertyFetch,y as getShaderPropertyStrides};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var s=class{constructor(){this.Gp=[];this.
|
|
1
|
+
var s=class{constructor(){this.Gp=[];this.MS=new Map}setEntities(n){this.Gp=n;let o=new Set;for(let e of n)o.add(e.getSceneGraph());for(let e of this.MS.keys())o.has(e)||this.MS.delete(e)}update(){let n=!1;for(let o of this.Gp){let e=o.tryToGetSkeletal();e!=null&&(e._enablePreviousBoneData(),e._updatePreviousBoneData()&&(n=!0));let t=o.getSceneGraph(),r=this.MS.get(t);if(r==null){t._previousWorldMatrixInner.copyComponents(t.matrixInner),this.MS.set(t,{version:t.worldMatrixVersion,isSettling:!0}),n=!0;continue}let i=t.worldMatrixVersion;(r.version!==i||r.isSettling)&&(t._previousWorldMatrixInner.copyComponents(t._lastComputedWorldMatrixInner),r.isSettling=r.version!==i,r.version=i,n=!0)}return n}clear(){this.Gp=[],this.MS.clear()}};export{s as PreviousFrameDataTracker};
|
|
@@ -116,7 +116,7 @@ export declare class TemporalAASystem {
|
|
|
116
116
|
/**
|
|
117
117
|
* Prepares the next frame. Call it once per frame before `Engine.process`.
|
|
118
118
|
*
|
|
119
|
-
* @param camera - The camera
|
|
119
|
+
* @param camera - The camera that renders the scene (see `_getTemporalAACamera`)
|
|
120
120
|
*/
|
|
121
121
|
prepareFrame(camera: CameraComponent | undefined): void;
|
|
122
122
|
/** The number of frames accumulated in the history, as passed to the resolve material in the last frame. */
|
|
@@ -127,8 +127,14 @@ export declare class TemporalAASystem {
|
|
|
127
127
|
destroy3DAPIResources(): void;
|
|
128
128
|
}
|
|
129
129
|
/**
|
|
130
|
-
* Returns the camera
|
|
131
|
-
*
|
|
130
|
+
* Returns the camera the scene is rendered with: the camera of the render pass that renders the most entities.
|
|
131
|
+
*
|
|
132
|
+
* @remarks
|
|
133
|
+
* A render pass without an explicit camera renders with the engine's current camera (see `MeshRendererComponent`
|
|
134
|
+
* and the strategies), so it counts as using the current camera. Overlay passes such as a film gate plane set their
|
|
135
|
+
* own camera and have few entities; taking the first camera of the pass list would pick one of them, and the motion
|
|
136
|
+
* vectors would then be computed against a camera the scene is not rendered with (which shows the history of other
|
|
137
|
+
* parts of the screen, e.g. a bright background, through foreground objects).
|
|
132
138
|
*
|
|
133
139
|
* @internal
|
|
134
140
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CameraComponent as
|
|
1
|
+
import{CameraComponent as c}from"../../components/Camera/CameraComponent.js";import{TextureFormat as p}from"../../definitions/TextureFormat.js";import{TextureParameter as o}from"../../definitions/TextureParameter.js";import{createMotionVectorMaterial as v}from"../../helpers/materials/createMotionVectorMaterial.js";import{createTemporalAAResolveMaterial as F}from"../../helpers/materials/createTemporalAAResolveMaterial.js";import{RenderableHelper as f}from"../../helpers/RenderableHelper.js";import{RenderPassHelper as y}from"../../helpers/RenderPassHelper.js";import{MutableMatrix44 as T}from"../../math/MutableMatrix44.js";import{Vector2 as h}from"../../math/Vector2.js";import{Vector4 as R}from"../../math/Vector4.js";import{Sampler as d}from"../../textures/Sampler.js";import{Expression as g}from"../Expression.js";import{RenderPass as P}from"../RenderPass.js";import{PreviousFrameDataTracker as A}from"./PreviousFrameDataTracker.js";var E=8,b=1024;function C(n,e){let r=0,i=1/e,a=n;for(;a>0;)r+=i*(a%e),a=Math.floor(a/e),i/=e;return r}function M(n,e,r){let i=n%E+1,a=C(i,2)-.5,t=C(i,3)-.5;return h.fromCopy2(a*2/e,t*2/r)}var x=class{constructor(e,r,i,a){this.am=0;this.TT=0;this.lT=new A;this.cT=0;this.oT=!1;this.hT=0;this.dT=T.identity();this.i=e,e._enablePreviousMorphWeights(),this.am=r,this.TT=i,this.iT=f.createFrameBuffer(e,{width:r,height:i,textureNum:1,textureFormats:[p.RGBA16F],mipLevelCount:1,createDepthBuffer:!0,depthTextureFormat:p.Depth32F}),this.iT.tryToSetUniqueName("TemporalAAMotionVector",!0),this.aT=f.createFrameBuffer(e,{width:r,height:i,textureNum:1,textureFormats:[p.RGBA16F],mipLevelCount:1,createDepthBuffer:!1}),this.aT.tryToSetUniqueName("TemporalAAOutput",!0),this.sT=f.createFrameBuffer(e,{width:r,height:i,textureNum:1,textureFormats:[p.RGBA16F],mipLevelCount:1,createDepthBuffer:!1}),this.sT.tryToSetUniqueName("TemporalAAHistory",!0),this.fT=new d(e,{magFilter:o.Linear,minFilter:o.Linear,wrapS:o.ClampToEdge,wrapT:o.ClampToEdge}),this.fT.create(),this.mT=new d(e,{magFilter:o.Nearest,minFilter:o.Nearest,wrapS:o.ClampToEdge,wrapT:o.ClampToEdge}),this.mT.create(),this.nT=v(e);let t=new P(e);t.tryToSetUniqueName("TemporalAAMotionVector",!0),t.clearColor=R.fromCopy4(0,0,1,0),t.toClearColorBuffer=!0,t.toClearDepthBuffer=!0,t.isVrRendering=!1,t.isOutputForVr=!1,t.setToRenderOpaquePrimitives(!0),t.setToRenderBlendWithZWritePrimitives(!0),t.setToRenderBlendWithoutZWritePrimitives(!1),t.setToRenderTranslucentPrimitives(!1),t.setFramebuffer(this.iT),t.setMaterial(this.nT),this.uT=t,this.tT=F(e),this.tT.setParameter("framebufferSize",h.fromCopy2(r,i)),this.tT.setTextureParameter("historyTexture",this.sT.getColorAttachedRenderTargetTexture(0),this.fT),this.tT.setTextureParameter("velocityTexture",this.iT.getColorAttachedRenderTargetTexture(0),this.mT);let s=y.createScreenDrawRenderPassWithBaseColorTexture(e,this.tT,a,this.mT);s.tryToSetUniqueName("TemporalAAResolve",!0),s.isVrRendering=!1,s.isOutputForVr=!1,s.setFramebuffer(this.aT),s.setResolveFramebuffer2(this.sT),this.CT=s,this.pT=new g,this.pT.tryToSetUniqueName("TemporalAA",!0),this.pT.addRenderPasses([t,s])}get expression(){return this.pT}get outputTexture(){return this.aT.getColorAttachedRenderTargetTexture(0)}get motionVectorTexture(){return this.iT.getColorAttachedRenderTargetTexture(0)}set currentFrameWeight(e){this.tT.setParameter("currentFrameWeight",e)}get currentFrameWeight(){return this.tT.getParameter("currentFrameWeight")._v[0]}set staticFrameWeight(e){this.tT.setParameter("staticFrameWeight",e)}get staticFrameWeight(){return this.tT.getParameter("staticFrameWeight")._v[0]}set varianceClipGamma(e){this.tT.setParameter("varianceClipGamma",e)}get frameIndex(){return this.cT}setEntities(e){this.uT.clearEntities(),this.uT.addEntities(e),this.lT.setEntities(e)}resetHistory(){this.oT=!1}prepareFrame(e){if(e==null)return;this.uT.cameraComponent=e,e!==this.rT&&(this.rT!=null&&(this.rT.jitterOffset=h.zero()),this.rT=e,this.oT=!1),T.multiplyTo(e.projectionMatrixWithoutJitter,e.viewMatrix,this.dT),this.nT.setParameter("previousViewProjectionMatrix",this.dT);let r=M(this.cT,this.am,this.TT);e.jitterOffset=r,this.nT.setParameter("currentJitter",r),this.tT.setParameter("currentJitter",r),this.cT++,this.lT.update()&&this.i._markGpuInstanceDataDirty(),this.oT||(this.hT=0),this.tT.setParameter("isHistoryValid",this.oT),this.tT.setParameter("historyFrameCount",this.hT),this.oT=!0,this.hT=Math.min(this.hT+1,b)}get historyFrameCount(){return this.tT.getParameter("historyFrameCount")._v[0]}destroy3DAPIResources(){this.rT!=null&&(this.rT.jitterOffset=h.zero(),this.rT=void 0),this.iT.destroy3DAPIResources(),this.aT.destroy3DAPIResources(),this.sT.destroy3DAPIResources(),this.lT.clear()}};function j(n,e){var s,l;let r=n.componentRepository.getComponent(c,c.getCurrent(n)),i=new Map;for(let u of e){let m=(s=u.cameraComponent)!=null?s:r;m!=null&&i.set(m,((l=i.get(m))!=null?l:0)+u.entities.length)}let a=r,t=-1;for(let[u,m]of i)(m>t||m===t&&u===r)&&(t=m,a=u);return a}export{x as TemporalAASystem,j as _getTemporalAACamera,M as getTemporalAAJitter,C as halton};
|
|
@@ -28,6 +28,8 @@ export type LightClusterGpuBuildParams = {
|
|
|
28
28
|
*
|
|
29
29
|
* - Every enabled light is written to the all-light list of the `clusteredLightData` global property
|
|
30
30
|
* (lights that can not be culled first, then the local lights, each sorted by the component SID).
|
|
31
|
+
* Ambient lights are the exception: their (color * intensity) is summed into the `ambientLightIntensity`
|
|
32
|
+
* global property, which the shaders add once per fragment.
|
|
31
33
|
* - For each camera used by the render passes of the frame (up to `Config.clusteredForwardMaxViewNumber`),
|
|
32
34
|
* a view region with the cluster grid is built when there are local lights, and the camera's
|
|
33
35
|
* `lightClusterViewInfo` points to it. Other cameras use the all-light list.
|
|
@@ -54,6 +56,10 @@ export declare class LightClusterSystem {
|
|
|
54
56
|
private __dataVersion;
|
|
55
57
|
private __globalData?;
|
|
56
58
|
private __globalDataVec4Base;
|
|
59
|
+
/** The `ambientLightIntensity` global property: the sum of (color * intensity) of the enabled ambient lights. */
|
|
60
|
+
private __ambientData?;
|
|
61
|
+
/** The ambient sum of the current frame, collected by __collectLights(). */
|
|
62
|
+
private __ambientSum;
|
|
57
63
|
private __capacity;
|
|
58
64
|
private __layout?;
|
|
59
65
|
private __scratch?;
|
|
@@ -153,6 +159,12 @@ export declare class LightClusterSystem {
|
|
|
153
159
|
* @returns true if the lists changed since the previous frame
|
|
154
160
|
*/
|
|
155
161
|
private __collectLights;
|
|
162
|
+
/**
|
|
163
|
+
* Writes the sum of the ambient lights (collected by __collectLights) into the `ambientLightIntensity` global
|
|
164
|
+
* property.
|
|
165
|
+
* @returns true if the value changed
|
|
166
|
+
*/
|
|
167
|
+
private __writeAmbientData;
|
|
156
168
|
/**
|
|
157
169
|
* Writes the all-light list into the `clusteredLightData` global property.
|
|
158
170
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CameraComponent as V}from"../../components/Camera/CameraComponent.js";import{LightComponent as
|
|
1
|
+
import{CameraComponent as V}from"../../components/Camera/CameraComponent.js";import{LightComponent as R}from"../../components/Light/LightComponent.js";import{BufferUse as M}from"../../definitions/BufferUse.js";import{RenderBackend as D}from"../../definitions/RenderBackend.js";import{Logger as G}from"../../misc/Logger.js";import{buildLightClustersOnCpu as O,computeLightBoundingSphere as N,createLightClusterBuildScratch as P,writeLightClusterViewHeader as k}from"./LightClusterBuilder.js";import{getLightClusterViewLayout as U,getLightListCapacity as T,LightClusterLayout as L,packLightEntry as z}from"./LightClusterLayout.js";var H=254,E=class{constructor(e){this.Db=0;this.Qb=-1;this.Hb=new Float64Array(3);this.F0=0;this.X0=new Float64Array(0);this.$0=new Float64Array(0);this.j0=new Float64Array(0);this.q0=new Float64Array(0);this.J0=new Float64Array(0);this.K0=0;this.Zb=0;this._0=0;this.jb=0;this.Wb=-1;this.Yb=-1;this.hw=-1;this.I0=[];this.A0=[];this.N0=[];this.Xb=new Float32Array(0);this.W0=new Set;this.$b=!1;this.qb=!1;this.tw=[];this.Jb=new Float64Array(0);this.Q0=new Float64Array(0);this.wb=new Float64Array(0);this.Kb=new Uint32Array(0);this.Lb=new Float32Array(0);this.U0=0;this.H0=[];this.Fb=[];this.Gb=[];this.Rb=[];this.ew=new Float32Array(L.viewHeaderVec4Count*4+4);this.i=e}get dataVersion(){return this.Db}get isGpuBuild(){return this.i.config.clusteredForwardBuildMode==="auto"&&this.i.engineState.currentRenderBackend===D.WebGPU}_getGpuBuildParams(){if(!(!this.isGpuBuild||this.H0.length===0||this.V0==null))return{views:this.H0,data:this.Lb,dataStride:this.U0,localCapacity:this.F0,layout:this.V0}}_getExcludedByteRanges(){return this.Gb}_takeDirtyByteRanges(){let e=this.Rb;return this.Rb=[],e}_getViewUniformData(e){let s=this.ew,o=L.viewHeaderVec4Count*4,u=e>=0?this.A0.indexOf(e):-1,r=u>=0?this.I0[u]:void 0;return r==null||!this.W0.has(e)?(s.fill(0),s[o]=-1,s):(s.set(r.array.subarray(0,o)),s[o]=r.vec4Base,s)}update(e){if(!this.iw())return;let s=this.rw(),o=s,u=this.sw(),r=this.i.config,f=this.isGpuBuild,h=Math.max(0,Math.floor(r.clusteredForwardMaxViewNumber)),n=Math.max(1,Math.floor(r.clusteredForwardMinLocalLightNumber)),m=r.isClusteredForwardEnabled&&this.jb>=n&&h>0&&!this.$b?this.nw(e):[];o&&(this.aw(),s=!0),this.H0.length=0,s=this.ow(m,h,o,f)||s,(s||u)&&this.Db++}iw(){if(this.Z0!=null)return!0;let e=this.i,s=e.globalDataRepository.getValue("clusteredLightData",0);if(s==null)return!1;let o=e.globalDataRepository.getValue("ambientLightIntensity",0);if(o==null)return!1;this.Z0=s._v,this.Pb=o._v,this.Qb=e.globalDataRepository.getLocationOffsetOfProperty("clusteredLightData");let u=e.config;this.F0=Math.min(T(u.maxLightListLength),(this.Z0.length/4-L.globalHeaderVec4Count)*4),this.X0=new Float64Array(this.F0),this.$0=new Float64Array(this.F0),this.j0=new Float64Array(this.F0*4),this.q0=new Float64Array(this.F0*4),this.J0=new Float64Array(this.F0),this.V0=U(u.clusteredForwardGridSize,u.clusteredForwardLightCapacityPerCluster),this.Jb=new Float64Array(this.F0),this.Q0=new Float64Array(this.F0*4),this.wb=new Float64Array(this.F0),this.Kb=new Uint32Array(this.V0.gridZ*2);let r=Math.max(0,Math.floor(u.clusteredForwardMaxViewNumber));return this.U0=this.F0*5+this.V0.gridZ*2,this.Lb=new Float32Array(r*this.U0),this.A0=new Array(r).fill(-1),this.N0=new Array(r).fill(!1),this.Fb=new Array(r).fill(0),this.Xb=new Float32Array(r*32),this.I0=new Array(r).fill(void 0),!0}rw(){let e=this.i.componentRepository._getComponents(R),s=this.F0,o=this.X0,u=this.j0,r=this.J0,f=Math.min(this.i.config.maxLightNumber-1,H),h=0,n=0,m=0,p=!1,i=this.Hb;if(i[0]=0,i[1]=0,i[2]=0,e!=null)for(let a=0;a<e.length;a++){let d=e[a];if(d==null||!d._isAlive)continue;let v=d._lightPropertyForGpu._v,g=v[0];if(g<-.5)continue;if(g>2.5){let t=d._lightIntensityForGpu._v;i[0]+=t[0],i[1]+=t[1],i[2]+=t[2];continue}if(h+n>=s||d.componentSID>=L.entryRadix){p=!0;continue}let b=d._shadowSlot,w=z(d.componentSID,b>=0&&b<=f?b:-1);if(N(g,d._lightPositionForGpu._v,d._lightDirectionForGpu._v,v[1],v[3],u,n*4)<0)o[h++]=w;else{r[n++]=w;let t=d._lightIntensityForGpu._v;(t[0]>0||t[1]>0||t[2]>0)&&m++}}p&&!this.qb&&(G.default.warn(`LightClusterSystem: The number of enabled lights exceeds Config.maxLightListLength (${s}). The other lights are ignored.`),this.qb=!0),o.set(r.subarray(0,n),h);let l=h+n;this.K0=l,this.Zb=h,this._0=n,this.jb=m;let c=l!==this.Wb||h!==this.Yb;if(!c){for(let a=0;a<l;a++)if(o[a]!==this.$0[a]){c=!0;break}}if(!c){for(let a=0;a<n*4;a++)if(u[a]!==this.q0[a]){c=!0;break}}return c&&(this.$0.set(o.subarray(0,l)),this.q0.set(u.subarray(0,n*4)),this.Wb=l,this.Yb=h),c}sw(){let e=this.Pb,s=this.Hb,o=Math.fround(s[0]),u=Math.fround(s[1]),r=Math.fround(s[2]);return e[0]===o&&e[1]===u&&e[2]===r?!1:(e[0]=o,e[1]=u,e[2]=r,!0)}aw(){let e=this.Z0;e[0]=this.K0,e[1]=this.Zb,e[2]=this._0,e[3]=-1;let s=L.globalHeaderVec4Count*4;e.set(this.X0.subarray(0,this.K0),s)}nw(e){let s=this.i,o=s._webXRSystemIfEnabled,u=[],r=f=>{f>=0&&!u.includes(f)&&u.push(f)};for(let f of e)for(let h of f.renderPasses){if(h.isBufferLessRenderingMode()||h.material!=null)continue;if(o!=null&&o.isWebXRMode&&h.isVrRendering){o.isMultiView()||(r(o._getCameraComponentSIDAt(0)),r(o._getCameraComponentSIDAt(1)));continue}let n=h.cameraComponent;n==null&&(n=s.componentRepository.getComponent(V,V.getCurrent(s))),!(n==null||n.isSyncToLight)&&r(n.componentSID)}return u}ow(e,s,o,u){var m,p;let r=this.i,f=this.V0,h=!1,n=new Array(s).fill(-1);for(let i of e){let l=this.A0.indexOf(i);l>=0&&(n[l]=i)}for(let i of e){if(n.includes(i))continue;let l=n.indexOf(-1);if(l<0)break;n[l]=i}for(let i of Array.from(this.W0))if(!n.includes(i)){let l=r.componentRepository.getComponent(V,i);l!=null&&l._lightClusterViewInfoForGpu._v[0]!==-1&&(l._lightClusterViewInfoForGpu._v[0]=-1,h=!0),this.W0.delete(i)}for(let i=0;i<s;i++){let l=n[i];if(l!==this.A0[i]&&(this.A0[i]=l,this.N0[i]=!1),l<0)continue;let c=r.componentRepository.getComponent(V,l);if(c==null){this.A0[i]=-1;continue}let a=this.I0[i];if(a==null){if(a=this.lw(f.viewVec4Count),a==null){this.A0[i]=-1;continue}this.I0[i]=a;let t=(a.vec4Base+L.viewHeaderVec4Count)*16;this.Gb.push([t,(a.vec4Base+f.viewVec4Count)*16]),this.Gb.sort((y,x)=>y[0]-x[0])}let d=c.viewMatrix._v,v=c._projectionMatrixForGpu._v,g=this.Xb,b=i*32,w=!1;for(let t=0;t<16;t++)if(g[b+t]!==d[t]||g[b+16+t]!==v[t]){w=!0;break}if(o||w||!this.N0[i]){if(g.set(d,b),g.set(v,b+16),k(a.array,0,d,v,this.j0,this._0,f,c.zNear,c.zFar),this.uw(a.array,i,u,f),this.Fb[i]=this._0,!u){(p=this[m="Y0"])!=null||(this[m]=P(f)),O(a.array,0,f,this.Q0,this.wb,this._0,this.Y0);let t=(a.vec4Base+L.viewHeaderVec4Count)*16,y=f.tableVec4Count+this.Y0.usedIndexVec4Count;this.Rb.push([t,t+y*16])}this.N0[i]=!0,h=!0}let F=c._lightClusterViewInfoForGpu._v;F[0]!==a.vec4Base&&(F[0]=a.vec4Base,h=!0),this.W0.add(l)}if(this.H0.length=0,u)for(let i=0;i<s;i++){let l=this.I0[i];this.N0[i]&&l!=null&&this.A0[i]>=0&&this.H0.push({viewVec4Base:l.vec4Base,localCount:this.Fb[i],dataOffset:i*this.U0})}return h}uw(e,s,o,u){let r=this._0,f=u.clusterLightCapacity,h=u.gridZ,n=this.j0,m=this.J0,p=this.Q0,i=this.wb,l=this.Kb;if(r<=f){p.set(n.subarray(0,r*4)),i.set(m.subarray(0,r));for(let c=0;c<h;c++)l[c*2]=0,l[c*2+1]=r}else{let c=this.Jb,a=this.tw;a.length=r;let d=e[12],v=e[13],g=e[14],b=e[15];for(let t=0;t<r;t++)c[t]=d*n[t*4]+v*n[t*4+1]+g*n[t*4+2]+b,a[t]=t;a.sort((t,y)=>c[t]-c[y]);for(let t=0;t<r;t++){let y=a[t];p[t*4]=n[y*4],p[t*4+1]=n[y*4+1],p[t*4+2]=n[y*4+2],p[t*4+3]=n[y*4+3],i[t]=m[y]}let w=e[20],F=e[21];for(let t=0;t<h;t++){let y=t===0?Number.NEGATIVE_INFINITY:Math.exp((t-F)/w),x=t===h-1?Number.POSITIVE_INFINITY:Math.exp((t+1-F)/w),A=r,B=0;for(let C=0;C<r;C++){let _=a[C],S=c[_],I=n[_*4+3];S+I>=y&&S-I<=x&&(C<A&&(A=C),C+1>B&&(B=C+1))}A>=B&&(A=0,B=0),l[t*2]=A,l[t*2+1]=B}}if(o){let c=s*this.U0,a=this.F0,d=this.Lb;d.set(p.subarray(0,r*4),c),d.set(i.subarray(0,r),c+a*4);let v=c+a*5;for(let g=0;g<h*2;g++)d[v+g]=l[g]}}lw(e){let s=this.i.memoryManager,o=e*16,u=this.i.config.bufferSizeDivisionRatiosForGPUInstanceDataUsage.length;for(let r=0;r<u;r++){let f=s.createOrGetBuffer(M.GPUInstanceData,r);if(f.byteLength-f.takenSizeInByte<o)continue;let h=f.takeBufferView({byteLengthToNeed:o,byteStride:0});if(h.isErr())continue;let n=h.get(),m=s.getByteOffsetOfExistingBuffers(M.GPUInstanceData,f.indexOfTheBufferUsage)+n.byteOffsetInBuffer,p=new Float32Array(f.getArrayBuffer(),n.byteOffsetInRawArrayBufferOfBuffer,e*4);return p.fill(0),{array:p,vec4Base:m/16}}G.default.warn("LightClusterSystem: Failed to allocate the light cluster data. All lights are evaluated."),this.$b=!0}};export{E as LightClusterSystem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{LightClusterLayout as e}from"./LightClusterLayout.js";var r=class{constructor(){this.
|
|
1
|
+
import{LightClusterLayout as e}from"./LightClusterLayout.js";var r=class{constructor(){this.ew=new Float32Array(e.viewHeaderVec4Count*4+4);this.ew[e.viewHeaderVec4Count*4]=-1}get dataVersion(){return 0}get isGpuBuild(){return!1}update(t){}_getGpuBuildParams(){}_getExcludedByteRanges(){return[]}_takeDirtyByteRanges(){return[]}_getViewUniformData(t){return this.ew}};export{r as LightClusterSystemStub};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{RnObject as i}from"../../core/RnObject.js";var t=class extends i{constructor(){super(...arguments);this.
|
|
1
|
+
import{RnObject as i}from"../../core/RnObject.js";var t=class extends i{constructor(){super(...arguments);this.am=0;this.TT=0;this.hp=[]}async setup(s,p){this.am=s,this.TT=p}setExpressions(s){this.hp=s}};export{t as DeferredRenderPipeline};
|