diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-03-17 18:48:00 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-03-18 13:23:05 +0300 |
commit | 006025ead0b89de671363816cd0e962f10d21c50 (patch) | |
tree | 7126736cb18cbfef6239cdaff1894171252a5d44 /intern/cycles/util | |
parent | fd53b72871e045dfebfb9ddbe2b3c491491aa913 (diff) |
Cycles: support for different 3D transform per volume grid
This is not yet fully supported by automatic volume bounds but works fine in
most cases that will have mostly matching bounds.
Ref T73201
Diffstat (limited to 'intern/cycles/util')
-rw-r--r-- | intern/cycles/util/util_texture.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/intern/cycles/util/util_texture.h b/intern/cycles/util/util_texture.h index d0672886cba..863c2ea3124 100644 --- a/intern/cycles/util/util_texture.h +++ b/intern/cycles/util/util_texture.h @@ -17,6 +17,8 @@ #ifndef __UTIL_TEXTURE_H__ #define __UTIL_TEXTURE_H__ +#include "util_transform.h" + CCL_NAMESPACE_BEGIN /* Texture limits on devices. */ @@ -99,7 +101,9 @@ typedef struct TextureInfo { uint interpolation, extension; /* Dimensions. */ uint width, height, depth; - uint pad[3]; + /* Transform for 3D textures. */ + uint use_transform_3d; + Transform transform_3d; } TextureInfo; CCL_NAMESPACE_END |