Author Topic: Invert Displacement  (Read 258 times)

Offline WASasquatch

  • Member
  • *
  • Posts: 1649
  • to = ( be ) ? be : not;
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

Offline luvsmuzik

  • Member
  • *
  • Posts: 2417
    • luvsmuzik 1995
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......

Offline WASasquatch

  • Member
  • *
  • Posts: 1649
  • to = ( be ) ? be : not;
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

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 12200
  • 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

Offline WASasquatch

  • Member
  • *
  • Posts: 1649
  • to = ( be ) ? be : not;
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