Commit e56337f1 authored by Jan Möbius's avatar Jan Möbius

New VSI meta data to set all color components of an object

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16505 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ee9957ab
...@@ -17,24 +17,49 @@ ...@@ -17,24 +17,49 @@
</element> </element>
<element name="color_object_emissive"> <element name="color_object">
<category>Colors</category> <category>Colors</category>
<short>Emissive Color</short> <short>Object Color</short>
<long>Set Emissive Color of an object</long> <long>Set Color of an object</long>
<dataflow>true</dataflow> <dataflow>true</dataflow>
<inputs> <inputs>
<input name="obj" type="ObjectId"> <input name="obj" type="ObjectId">
<short>ID</short> <short>ID</short>
<long>ID of an object</long> <long>ID of an object</long>
</input> </input>
<input name="color" type="Vector4"> <input name="color_emissive" type="Vector4" optional="true">
<short>Color</short> <short>Emissive</short>
<long>Desired emissive color</long> <long>Desired emissive color</long>
<precision>0.00001</precision> <precision>0.00001</precision>
</input> </input>
<input name="color_ambient" type="Vector4" optional="true">
<short>Ambient</short>
<long>Desired ambient color</long>
<precision>0.00001</precision>
</input>
<input name="color_diffuse" type="Vector4" optional="true">
<short>Diffuse</short>
<long>Desired diffuse color</long>
<precision>0.00001</precision>
</input>
<input name="color_specular" type="Vector4" optional="true">
<short>Specular</short>
<long>Desired specular color</long>
<precision>0.00001</precision>
</input>
</inputs> </inputs>
<code> <code>
colorplugin.setObjectEmissiveColor([input="obj"],[input="color"]) if ([is_connected="color_emissive"])
colorplugin.setObjectEmissiveColor([input="obj"],[input="color_emissive"]);
if ([is_connected="color_ambient"])
colorplugin.setObjectAmbientColor([input="obj"],[input="color_ambient"]);
if ([is_connected="color_diffuse"])
colorplugin.setObjectDiffuseColor([input="obj"],[input="color_diffuse"]);
if ([is_connected="color_specular"])
colorplugin.setObjectSpecularColor([input="obj"],[input="color_specular"]);
</code> </code>
</element> </element>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment