Home Unreal Engine

reflections + shader + pre-process...

polycounter lvl 10
Offline / Send Message
tuxmask75 polycounter lvl 10
Ok guys,
First we set up a flat plane model with a bunch of subdivisions.
22184613.png



Than we made a world position offset vertex shader that morphs that model into a sphere.
21863017.png


We want to apply reflections to the model, however when the reflections are captured, they seem to be only done after the vertex shader step. ( cutting them in half)
76326228.png

In the final picture, notice that the reflections look more correct compared to the ones on the curved vertex shader.
We figure if there is some way to capture the reflection before the vertex shader changes the geometry's shape,
than we can have the same reflections shown on the original flat model be applied after the vertex shader.
95532122.png



So?
Is there a way to catch the reflections before our vertex shader is applied to the model? I wonder,,,is there some sort of pre-process?

Replies

Sign In or Register to comment.