# Pseudo 3D racer

**URL:** <https://forum.defold.com/t/pseudo-3d-racer/63745>\
**Category:** Questions\
**Created:** [October 24, 2019, 12:26pm UTC](https://forum.defold.com/t/pseudo-3d-racer/63745 "2019-10-24T12:26:03Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [October 24, 2019, 3:59pm UTC](https://forum.defold.com/t/pseudo-3d-racer/63745/6 "2019-10-24T15:59:07Z")

</div>

Here’s one way. Since it uses uniforms, it will break batches, but could still be useful sometimes:

> [@2d light implemetations](https://forum.defold.com/t/2d-light-implemetations/3636/5):
>
> You want to change the vertices in the vertex shader. However, this is tricky, since 1) we’re using OpenGLES 2.0 which doesn’t feature gl\_VertexID, and 2) We currently only support 4 user defined constants per shader. However, a simple test allowed me to modify the vertices of my box, using a custom material and custom shader. The yellow rectangle is the original location of my box, and the gradient polygon is my custom vertices (pretend there’s a light source in the bottom left corner):

---

_[View the full topic](https://forum.defold.com/t/pseudo-3d-racer/63745)._
