Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-10-20 20:47:58 +0300
committerHans Goudey <h.goudey@me.com>2020-10-20 20:47:58 +0300
commit3d78e98d52d3107aebdea119727ed909acbbc5f5 (patch)
treedc6e96a8eaf0cce0be39d5790b5bca2ec60b5157 /source/blender/blenkernel/BKE_ocean.h
parentde77aa337cf427ceee01a00d292d28c4287f66c7 (diff)
Ocean Modifier: allow spray maps to be baked
In comments made by a tester on rB17b89f6dacba007bf, it seems that baking of the spray maps would be useful. This commit adds that capability. Both the spray map and its inverse are baked out in this change, for maximum convenience and to avoid assuming what the user wants. Differential Revision: https://developer.blender.org/D8470
Diffstat (limited to 'source/blender/blenkernel/BKE_ocean.h')
-rw-r--r--source/blender/blenkernel/BKE_ocean.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_ocean.h b/source/blender/blenkernel/BKE_ocean.h
index 1f8cdf27eb1..2c0c6989acf 100644
--- a/source/blender/blenkernel/BKE_ocean.h
+++ b/source/blender/blenkernel/BKE_ocean.h
@@ -44,6 +44,10 @@ typedef struct OceanCache {
struct ImBuf **ibufs_disp;
struct ImBuf **ibufs_foam;
struct ImBuf **ibufs_norm;
+ /* spray is Eplus */
+ struct ImBuf **ibufs_spray;
+ /* spray_inverse is Eminus */
+ struct ImBuf **ibufs_spray_inverse;
const char *bakepath;
const char *relbase;
@@ -92,6 +96,7 @@ void BKE_ocean_init(struct Ocean *o,
float sharpen_peak_jonswap,
short do_height_field,
short do_chop,
+ short do_spray,
short do_normals,
short do_jacobian,
int seed);