Skip to main content

Meta_WaterMaterial

Module: Metanodes / Definitions

A WaterMaterial provies Meta_Ocean rendering on an object.

#include <meta_ocean.hpp>

Public Types

TypeName
enumIDX { Idx_Enabled, Idx_Resolution, Idx_SizeInMetres, Idx_Choppiness, Idx_Roughness, Idx_Wind, Idx_Reflectivity, Idx_Ambient, Idx_Extinction, Idx_ExtinctionColour, Idx_Scattering, Idx_ScatterColour, Idx_Animate, Idx_DisplacementScale, Idx_UVScale, Idx_WindBias, Idx_WindLanesEnabled, Idx_WindLanesWaveAmplitude, Idx_WindLanesWaveWavelength, Idx_WindLanesWaveSpeed, Idx_WindLanesWaveSteepness, Idx_DistanceScale }
Property index.

Public Types Documentation

enum IDX

EnumeratorValueDescription
Idx_Enabledbool - Enables the ocean
Idx_Resolutionint - Number of vertices to use for one patch of ocean
Idx_SizeInMetresfloat - Area of a single patch in metres
Idx_Choppinessfloat - Choppiness of waves
Idx_Roughnessfloat - Roughness of waves
Idx_Windvec3f - Direction and intensity of the wind
Idx_Reflectivityfloat - How much incoming light should be reflected in the water
Idx_Ambientfloat - How much ambient light is picked up in the water colour
Idx_Extinctionfloat - Amount of light penetration in the water
Idx_ExtinctionColourvec3f - Filtered light colour; RGB 0.0f to 1.0f
Idx_Scatteringfloat - How many particles are in the water to reflect light
Idx_ScatterColourvec3f - The colour of light reflected from the scattering particles
Idx_Animatebool - When enabled, the ocean waves are animated
Idx_DisplacementScalefloat - Scale of wave displacement
Idx_UVScalefloat - Value by which to multiply the UV coordinates of the mesh the material's applied to before using them to sample the water data
Idx_WindBiasfloat - Bias of the wind
Idx_WindLanesEnabledInternal.
Idx_WindLanesWaveAmplitudeInternal.
Idx_WindLanesWaveWavelengthInternal.
Idx_WindLanesWaveSpeedInternal.
Idx_WindLanesWaveSteepnessInternal.
Idx_DistanceScale

Property index.