Skip to content

Adding triplanar mapping #15048

@Fyrestar

Description

@Fyrestar

This would be a useful feature to have by default, besides terrains, when sculpting shapes or using primitives to construct a scene. It currently requires to generate a geometry with proper UV coordinates.

I'd suggest local and global mapping, since organic textures work fine for mixed axes and will then seamlessly mix with intersecting objects.

I've implemented it with a mapping property on the material which is by default THREE.UVMapping, in setProgram i set a modelScale uniform for local mapping.

https://mevedia.com/img/triplanar.mp4

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions