Skip to content

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Feb 10, 2025

Related issue: #28418

Description

Introduce RaymarchingBox( steps, function ), this makes the API cleaner and raymarched with textures3d() can be used on any material more easily since it is now a node.

VolumeNodeMaterial could be discontinued after this PR but I'll probably keep it after a review for volumetric fog implementation. https://x.com/sea3dformat/status/1887405202774302835

RaymarchingBox( steps, ( { positionRay } ) => {

	const sample = texture3D( positionRay.add( 0.5 ) ).r;

	// ...

} );

@sunag sunag added this to the r174 milestone Feb 10, 2025
@sunag sunag marked this pull request as ready for review February 10, 2025 07:25
@sunag sunag changed the title TSL: Introduce raymarchingBox TSL: Introduce RaymarchingBox Feb 10, 2025
@sunag sunag changed the title TSL: Introduce RaymarchingBox TSL: Introduce RaymarchingBox and raymarchingTexture3D Feb 10, 2025
@sunag sunag merged commit 0c05674 into mrdoob:dev Feb 10, 2025
11 checks passed
@sunag sunag deleted the dev-raymarching-box branch February 10, 2025 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants