Is it Possible to make certain textures available at certain camera angles

Hello! I’m wanting to do an effect in my game like the ink lines characters had on their faces in the Spider-Man: Into/Across the Spider-Verse movies.

I know a static version can be done with just textures & clever Model Topology (Case in point: Almost every “Anime” style video game that’s come out in the past 5 or so years like Zenless Zone Zero, Wuthering Waves, etc). But what I’m wanting to find out is if it’s possible to achieve the same animated effect as the Spider-Verse movies where the “Ink Lines” would change based on what angle the Camera was viewing their faces from, how characters emoted and moved their faces, etc; or is the static texture/topology alternative the only possible way?

You could use a texture that stores a vector (think like a special normal map) for what direction the ink should be visible from. Then, you can get the dot product of that vector and the camera vector to see how closely it aligns, as a dot product returns a 1 to -1 value based on the similarity of the vectors. Then you remap this 1 to -1 value to the range where you want the ink effect to appear. Then, use this to drive a lerp between our outline color and the original color.

1 Like