# How to create a vertex shader similar to Subway Surfers?

**URL:** <https://forums.unrealengine.com/t/how-to-create-a-vertex-shader-similar-to-subway-surfers/12951>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [October 10, 2014, 5:26pm UTC](https://forums.unrealengine.com/t/how-to-create-a-vertex-shader-similar-to-subway-surfers/12951 "2014-10-10T17:26:13Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![redbox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@redbox](https://forums.unrealengine.com/u/redbox)\
**Post date:** [June 23, 2018, 8:49am UTC](https://forums.unrealengine.com/t/how-to-create-a-vertex-shader-similar-to-subway-surfers/12951/11 "2018-06-23T08:49:33Z")

</div>

It flickers because original mesh goes out of camera view, its culled. And I’m not sure what size of mesh should be, make it work perfectly.  
That material was just an small expreriment.

I found it in my archives and checked in 4.19.2  
everything works fine.  
maybe it not really accurate, but for now I don’t have a time to make any imrovements, sorry ))

here is material:

 ![20180623_1123.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/a/5aa7b2fd4d6cdc5778506ac73d4f00c66bebbdb8.png)

And how it works:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/1/6/01625c33f425a6f8656cc89a25188e7a16848f14.jpeg "Deformed world") ](https://www.youtube.com/watch?v=EAUzrQfhpio)

This mesh have size like 10000_2000_1000 UU

 ![20180623_1147.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/5/d5e324442e25ea5f3e72f57287bb7774a3010cc7.jpeg)

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-create-a-vertex-shader-similar-to-subway-surfers/12951)._
