NFS like vinyl overlays (texture layers)

Hey there,
I’m a huge fan of Need For Speed and I want to try out building some buttons to add “vinyl” layers into a 3D object in playcanvas. In other words, I want to add several textures layers on top of a base material like applying stickers on it. As a start, I just want to place the stickers on a predetermined position on the object.

With the help of the PC forum, I have managed to change colours of an object by changing its material with a UI button. Here’s that project: PlayCanvas 3D HTML5 Game Engine

So, the question is, as a novice, I have no idea how to add sticker-like textures on top of a material. And the stickers should remain unchanged even the material is swapped to change the diffuse colour. (as in the above stated project) Can you point me on how to build this?

This is where it gets very non trivial as you have to start writing shaders.

It be something along the lines of this: https://developer.playcanvas.com/en/tutorials/character-damage-demo/

1 Like

Yikes! Is that what shaders are for?! :flushed:

Thanks @yaustar… I’ll run a bacground check on GLSL, I guess… :thinking:

1 Like