Skip to content

TSL: Introduce RaymarchingBox and raymarchingTexture3D #30495

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

Merged
merged 8 commits into from
Feb 10, 2025

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