Skip to content

Custom material with a triplanar mapping shader for three.js

Notifications You must be signed in to change notification settings

cptSwing/three-triplanarmapping

Repository files navigation

three-triplanarmapping

A threeJs shader for object-space triplanar mapping (WIP)

..using CustomShaderMaterial. Thrown together in typescript.

ToDo:

  • World Space shader
  • Extend to emissive, metalness etc
  • Remove unnecessary samples when not all axes have separate textures supplied - use textureX on Y, Z
  • different blend options (only YZ, for example)
  • Clean up and separate material return function from test scene
  • list as package?

Lots of info gleaned from

cheers!

1 2 3

About

Custom material with a triplanar mapping shader for three.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published