Three-dimensional nanophotonics with spatially modulated optical properties | Synapse