Skip to content
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

Nodes: Triplanar Texture Mapping #24714

Merged
merged 2 commits into from
Sep 30, 2022
Merged

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Sep 30, 2022

Related issue: #15048, #24674

Description

Added Triplanar Texture Mapping for new Node Material System, it works in WebGL and WebGPU backends.

Example:

import { texture, triplanarTexture } from 'three/nodes';

...
material = new Nodes.MeshBasicNodeMaterial();

material.colorNode = triplanarTexture( texture( diffuseMap ) );
// or
material.colorNode = triplanarTextures( texture( diffuseMap ), texture( diffuseMap ), texture( diffuseMap ) );

This contribution is funded by Google

@sunag sunag added this to the r146 milestone Sep 30, 2022
@sunag sunag marked this pull request as ready for review September 30, 2022 02:23
@sunag sunag merged commit 430e610 into mrdoob:dev Sep 30, 2022
@sunag sunag deleted the dev-triplanar-texture-mapping branch September 30, 2022 16:53
@joshuaellis joshuaellis mentioned this pull request Oct 31, 2022
19 tasks
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.

1 participant