Option to rename the vertex color data layer used by Ocean modifier for foam. The modifier outputs foam values to both textures and a (temporary) vertex data layer. This layer was unnamed before, which makes it impossible to access in shader nodes. Now the user can input a custom name in the modifier panel, then use that same name in a shader input node to access foam values.

http://www.pasteall.org/pic/21120
This commit is contained in:
Lukas Toenne
2011-11-20 14:16:41 +00:00
parent 9000db3631
commit 17b113c784
4 changed files with 15 additions and 5 deletions

View File

@@ -455,11 +455,14 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
layout.prop(md, "use_normals")
layout.prop(md, "use_foam")
row = layout.row()
row.prop(md, "use_foam")
sub = row.row()
sub.active = md.use_foam
sub.prop(md, "foam_coverage", text="Coverage")
row.active = md.use_foam
col = row.column()
col.prop(md, "foam_coverage", text="Coverage")
col = row.column()
col.label("Foam Data Layer Name")
col.prop(md, "foam_layer_name", text="")
layout.separator()