#Stacking Shaders

2 messages · Page 1 of 1 (latest)

winter moth
#

Apologies if this is an easy question, but I'm looking to stack two canvas_item shaders, each of which reads from the screen. i have a BackBufferCopy set to "Viewport", but it doesn't look to be doing what i want it to do, so i'm likely doing something wrong/stupid.

the two shaders are:

  • a shader that has the text of a Label follow the curve of an opened book, and,
  • a shader that acts as a magnifying glass

in the first screenshot, you can see the magnifying glass shader enabled but with the other shader disabled, so you can see what looks ok. (the "magnifying glass" is the area inside the highlighted box widget)

in the second screenshot, you can see both shaders enabled. you'll notice that what's shown in the magnifying glass is the same as the previous screenshot, whereas i'd expect what's displayed in the magnifying glass to be shifted up somewhat and be indicative of what would be seen as though the magnifying glass is viewing the rendered contents of the other shader.

so maybe i'm doing something wrong with the BackBufferCopy or I'm doing something in the shaders themselves. (i've read the docs on BackBufferCopy and can't see anything immediately jumping out that i haven't tried, unless i've misread or missed something.)

i've also tried making the Magnifier (Control-derived) node in question a child of the BackBufferCopy, but that also does nothing.

any help would be greatly appreciated.

thank you in advance!

winter moth
#

bumping this a bit to see if anyone has any ideas. i'm sure this is a pain and i apologize.