Passer au contenu principal
Bluvy Tube
Appuyez sur Échap pour quitter le plein écran
Volume m
/
i
Mode Cinéma t
f
/
any unity shader graph using folk know how to cycle vertex colours on vertices? Looking to create something similar to how surfaces look under water in the OG Tomb Raider games.

Raccourcis clavier

Espace K
Lecture / pause
← →
Reculer / avancer de 5 s
J L
Reculer / avancer de 10 s
0–9
Aller à 0 %–90 % de la vidéo
Home End
Début / fin
, .
Image précédente / suivante (en pause)
< >
Ralentir / accélérer
↑ ↓
Volume
M
Couper / rétablir le son
C
Sous-titres
F
Plein écran
I
Image dans l’image
T
Mode cinéma
?
Afficher cette aide

any unity shader graph using folk know how to cycle vertex colours on vertices? Looking to create something similar to how surfaces look under water in the OG Tomb Raider games.

0 vue Publié le 12/10/2026 15:04 0:13
any unity shader graph using folk know how to cycle vertex colours on vertices? Looking to create something similar to how surfaces look under water in the OG Tomb Raider games.
13 commentaires
?
Sidremus @sidremus.bsky.social · 13/10/2026 08:26
take a noise texture an multiply it into the albedo. to animate it, scroll it over time. the texture should be smoothed, looping on it's edges, and the value range should be roughly from 0.5-1.0
i assumed all the verts' colors were put on a sin table that was changing in real time, with all the caustics precalculated. as these colors were stored in system memory, it's fine
Visuwyg @visuwyg.bsky.social · 12/10/2026 19:39
I'd have to ask our graphics programmer how we do it...
‎ @3motion3ngin3.bsky.social · 12/10/2026 19:51
oh my god
God dang beautiful
I think I did this using gradient mapping? Arbitrary grayscale vertex color on a mesh, remapping to a gradient and then scrolling through the gradient
This is a very VERY rough example I threw together in 5 minutes, but you can use custom interpolators in shader graph to perform your shader effects in the vertex stage and then send it to fragment, like this
can send you some $$$/£££ for the help or donate to a charity of your choice if no
god dang legend
This produces this effect, which should get you to the look you're looking for probably!
Xavier @xavierck.com · 12/10/2026 15:59
This page says you can create a custom interpolator that has access to vertex IDs, and that can be used to change vertex colors in real time
Custom Interpolators | Shader Graph | 12.0.0
maybe @visuwyg.bsky.social or the @hauntedps1.bsky.social community can help?
Sean Dick @seandick.net · 12/10/2026 15:51
my immediate thought is to use the position node + some time offset to set the effective uv of a perlin noise node to multiply against the vertex color to then multiply against the color node
Nifflas @nifflas.bsky.social · 12/10/2026 15:49
I suggest, you have four floats per vertex. They normally map to red, green, blue, and alpha. Consider ignoring this, and see them as four arbitrary floats.

rgb could represent oscillation frequency, phase offset, and effect strength for example
Nifflas @nifflas.bsky.social · 12/10/2026 16:14
this particular example seems like you could sorta replicate by multiplying the brightness with sin(phase offset+time*frequency)*strength, where all values except time are vertex color channels
Don't actually change the vertex color. Sending the new data to the GPU will destroy your bandwidth. Instead treat one of the vertex channels as a timeline and simply paint the offset in that timeline to each vertex. Same visual effect, much lower rendering cost even if you do need a custom material
Nihera @nihera.northsky.social · 12/10/2026 15:44
Oooo that's awesome and would love to see it in COVEN all the best with that 🫡
cammy @cammydev.bsky.social · 12/10/2026 15:16
i always loved this effect, such a cool trick for doing caustics lol
Voir le post d'origine sur Bluesky
Lien copié dans le presse-papier

Connexion

Il est temps de faire une pause

Ça fait 30 minutes que vous enchaînez les vidéos : accordez-vous 5 minutes loin de l'écran. Levez-vous, étirez-vous, buvez un verre d'eau… Les vidéos vous attendront ici.