A photomechanics material for elastoplastic stress analysis