-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.9.0 #95
Merged
Merged
v0.9.0 #95
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Removed deprecated `Plane` class `mouseToPlaneCoords` method. - Added test and example, fixed previous examples to use the `Raycaster` class over the `mouseToPlaneCoords` method. - Fixed `ProjectedMeshBaseMixin` bounding sphere wrong radius. - Added a `clipSpaceBoundingRect` to `DOMFrustum` class. - Fixed `Geometry` class `getAttributeByName` method.
- removed unnecessary `MeshBaseMixin` `super.render` call
Raycaster implementation
Render bundles implementation
WebGPU bitwise flags fallbacks
- added a `setRenderer` method for lights and shadows to allow to change renderer at runtime - better renderer and renderer binding lights and shadows management - fixed non working / buggy max light overlflow on the `GPUCameraRenderer` - fixed `PointShadow` rendering bug where the `GPUCameraRenderer` light bind group was not always already created - fixed updating the projected meshes `camera` when setting a new renderer - added a `useCamera` method to the `OrbitControls` class to allow to change the current camera at runtime - added a test for all those cases
… must have their renderer updated as well, especially `RenderMaterial` that use the `GPUCameraRenderer` camera bind groups!) - fixed lights and shadows various reseting issues
- added Suzanne glTF model as asset
…in order to potentially improve performance - updated fullscreen plane example to use a basic `GPURenderer`
Improved renderer switching for materials, compute passes, lights and shadows
…ndings` - fixed `BufferBinding` `clone()` method to handle `childrenBindings` and clone `struct` objects - updated `GPUCameraRenderer` and shadow classes to reflect changes - fixed `setRenderBundle()` method for projected mesh to better handle buffers
…in `BufferBinding`
- better `GPUCameraRenderer` camera and lights bind group update and reset management - better `GPUCameraRenderer` light overflowing that could potentially handle missing light binding if its max were set to 0 - `RenderMaterial` can now handle the case where the `GPUCameraRenderer` need to flush the pipeline - moved `ProjectedMeshBaseMixin` receiving shadow fragment shader patch into `setShaders()` - `BufferBinding` now handle `childrenBindings` `bufferElements` when it has a parent
…ldren Buffer binding parent children
chore(deps): updated dev dependencies
… and generate LUT, diffuse and specular textures using compute shaders - Cleaned up `HDRLoader` class - Refactored IBL `buildShaders` helper to use `EnvironmentMap` instances - Refactored `ComputeMaterial`, `PipelineManager`, `PipelineEntry` and `ComputePipelineEntry` to cache compute pipelines - updated tests and examples accordingly
Environment map
…erers parameters, and removed deprecated `alphaMode` and `preferredFormat` parameters
New renderers `context` parameter
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
MAJOR UPDATE (includes a few breaking changes)
Summary of the new features and improvements:
RAYCASTER
Raycaster
extra class.Plane
classmouseToPlaneCoords
method.Raycaster
class over themouseToPlaneCoords
method.ProjectedMeshBaseMixin
bounding sphere wrong radius.clipSpaceBoundingRect
toDOMFrustum
class.Geometry
classgetAttributeByName
method.RENDER BUNDLES
BufferBindingOffsetChild
class to create a buffer binding child using another buffer binding parent GPU buffer with an offset (allows to handle multiple transformations buffers into a single large buffer).RenderBundle
class. This class can create a parent binding buffer, therefore introducing major performances optimizations (up to +150% CPU perf gain in some edge cases).Scene
andGPURenderer
classes to handle the newRenderBundle
class.Light
classes not working when passing aGPUCurtains
instance to the constructor.IMPROVED RUNTIME RENDERER SWITCHING
setRenderer
method for lights and shadows to allow to change renderer at runtimesetRenderer
method toComputePass
as well.setRenderer
method to the material classes (materials must have their renderer updated as well, especiallyRenderMaterial
that use theGPUCameraRenderer
camera bind groups!)GPUCameraRenderer
PointShadow
rendering bug where theGPUCameraRenderer
light bind group was not always already createdcamera
when setting a new rendereruseCamera
method to theOrbitControls
class to allow to change the current camera at runtimeif
statements instead ofselect
in order to potentially improve performanceBUFFER BINDING
BufferBinding
BufferBinding
: changed bindings param tochildrenBindings
BufferBinding
clone()
method to handlechildrenBindings
and clonestruct
objectsBufferBinding
now handlechildrenBindings
bufferElements
when it has a parentENVIRONMENT MAP
EnvironmentMap
class that uses aHDRLoader
to load .hdr files and generate LUT, diffuse and specular textures using compute shadersHDRLoader
classbuildShaders
helper to use anEnvironmentMap
instanceComputeMaterial
,PipelineManager
,PipelineEntry
andComputePipelineEntry
to cache compute pipelinesRENDERERS
context
parameter to theGPURenderer
and other renderers parameters, and removed deprecatedalphaMode
andpreferredFormat
parametersVERSION