Bump map looks ok on phong material, has stair step effect on physical material

Interesting, never used that before. I wasn’t able to find a Three.js demo (looks like older examples had one, but now removed).

I found this plain webgl demo:

Here’s an r3f demo on three r126:

But it gets a bit funky/artefacty when the “wall” is at more of an angle. It’s also just a webgl-demo wrapped in Three (ShaderMaterial), not really useful without the rest of Three’s material system.

I’m guessing there’s a reason this isn’t in Three core.

Maybe it is more useful as a composable node material for WebGPURenderer? But node materials are not easy to modify last I tried.

1 Like