Set(material.name, "watermaterial_waterparams_2_5") When using CGA the water material can be specified using the substring "_waterparams" in material name: When set on a layername, the _water* substring will be removed from the layer name displayed in Web Viewer. When setting the substring to shape names the export settings of these shapes need to be set to interactivity: pickable for the Web Viewer to pick it up. When set on a layer, all objects in this layer will get the water shader. ![]() These strings can be set either on a shape name or a layer name. _waterstormy (higher wave speed, more amplitude) _waterquiet (slower wave speed, less amplitude) The following substrings trigger the water shader in Web Viewer: ![]() Some additional hints on the water shader in CityEngine Web Viewer:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |