← All projects
Games & animation

Interactive shader

Drawing and displacement on a 3D surface.

My focus

Personal shader-programming project

Tools & techniques

  • Unity
  • Shaders
  • Mesh displacement
Recorded project demonstration. Download video ↓

This project explores manipulating a shader to draw directly onto a mesh with the mouse cursor. The painted area can be raised, lowered or left at its existing height by changing the displacement value.

Interaction and visual feedback

The main challenge was connecting mouse input to changes in the material and geometry. The demo shows a drawing operation producing changes on a 3D surface, rather than simply placing a flat mark on the screen.

Possible extensions

The same approach could be adapted for tracks along a path or visual impact marks at collision points. These are potential uses of the technique, not additional features claimed by the demonstration.

Next project

NOAH: Dojo level