### Author Topic: Invert Displacement  (Read 315 times)

#### WASasquatch

• Member
• Posts: 2356
• The Homeless Landscape Artist
##### Invert Displacement
« on: March 12, 2018, 12:03:20 AM »
Is there anyway to invert the displacement of a shader?
Art can be a window into the soul

#### luvsmuzik

• Member
• Posts: 2668
##### Re: Invert Displacement
« Reply #1 on: March 12, 2018, 01:06:24 AM »
You can use negative displace value, or try rotation with the transform input shader set to world final postilion. If a Power fractal is a mask, just mask as coverage then invert it. Not quite sure which direction you are going......

#### WASasquatch

• Member
• Posts: 2356
• The Homeless Landscape Artist
##### Re: Invert Displacement
« Reply #2 on: March 12, 2018, 02:30:23 AM »
You can use negative displace value, or try rotation with the transform input shader set to world final postilion. If a Power fractal is a mask, just mask as coverage then invert it. Not quite sure which direction you are going......

Literally inverting the final displacement of a shader set. Rotation would be a way, but it would mirror the displacement in the wrong orientation.
Art can be a window into the soul

#### Oshyan

• Planetside Staff
• Posts: 12366
• Holy snagging ducks!
##### Re: Invert Displacement
« Reply #3 on: March 12, 2018, 03:21:39 AM »
Convert Displacement to scalar/vector and invert then convert back?

- Oshyan

#### WASasquatch

• Member
• Posts: 2356
• The Homeless Landscape Artist
##### Re: Invert Displacement
« Reply #4 on: March 12, 2018, 06:52:28 PM »
Convert Displacement to scalar/vector and invert then convert back?

- Oshyan

I totally forgot about inverse scalar.  How would one convert scalar back to a correct displacement without... oddities? Seems when converted to scalar the exact geometry of displacement is lost. I'm converting to scalar, inversing, and piping into a displacement function.
Art can be a window into the soul

anything