I needed a texture to affect a volume shader, no problem if in 2d or 3d space, using UV mapping but with this last seems like not working as intended.
Mesh is UV unwrapped; cpu rendering, with gpu had to reboot the pc (and rewrite this post) as completely “freezed”.
Is a bug/incomplete feature or i am missing something, as usual?
Blend file example: pasteall link
You may try:
object texture mapping(working ok)
UV texture mapping(not ok with volume absorpion or scatter)
diffuse shader, both texture mapping(working ok)
other textures
maybe gpu rendering with the default .blend i provided? Rebooted a second time, btw.
edit: ok, i think is not possible to correctly map the density of a cube using UV coordinates since the shader don’t know what value to place at example at the middle of the mesh. Or maybe can do some kind of interpolation?