Skip to content

Material Functions Library

Davor Bokun edited this page Sep 30, 2019 · 1 revision

Planetesimal Surface Material Functions

Public Unreal Engine 4 material functions used to render atmospheric scattering effect on opaque surfaces within the atmospheric cloud.

MF_PlanetesimalSurfaceMixin

Basic surface atmospheric scattering rendering implementation. Used to modify material attributes and mix in the scattering effect.

UseSurfaceIlluminationDimming [StaticBool=True]

Whether to dimm the objects Base Color according with calculated surface illumination or not. Defaults to True but set it to false if you want to be able to use custom lighting like spot lights etc. See UsingSurfaceIllumination for more.

UseTextureTinting [StaticBool=False]

Use TextureTint input to tint the emissive component. Samples the input texture at three layers and mixes in the texture color. NOTE: This adds significant cost to the performance. See UsingTextureTinting for more.

InTextureTint [Texture Object]

Spherical texture used for emissive tint (mapped as LongLat).

MF_PlanetesimalSurfaceMixin_MA

Material attributes version of the MF_PlanetesimalSurfaceMixin function. For details see above.

MF_DualScatter_Surface

Core function for implementing the surface atmospheric scattering effect. For advanced use cases only. For basic atmospheric scattering effect see MF_PlanetesimalSurfaceMixin and MF_PlanetesimalSurfaceMixin_MA, which also provide an example of how to use this material function properly.

Planetesimal Sky Material Functions

Public Unreal Engine 4 material functions used to render atmospheric scattering effect on atmosphere-only (see-through) parts of the atmosphere. Can be rendered on opaque or translucent mesh which should be positioned behind the cloud boundaries and all objects which are within the cloud. It should also be visible from within the cloud looking outward.

MF_PlanetesimalSkyMixin

Basic sky atmospheric scattering rendering implementation. Used to modify material attributes and mix in the scattering effect.

UseSceneColorTranslucency [StaticBool=True]

Combine translucency with SceneColor buffer for correct tinting of opaque background. This can result in strange behavior if the background contains translucent objects (like other planetesimals) since they do not show on the SceneColor buffer. See UsingSceneColorTranslucency for more.

UsePlanetesimalStencil [StaticBool=True]

Test PlanetesimalStencil material parameter against custom stencil buffer. This it the prefered method of resolving double intensity of atmospheric scattering effect related to surface mesh rendering behind translucent sky. See ResolvingDoubleIntensity for more.

UseOpaqueMaterial [StaticBool=False]

Render sky with opaque material disregarding the background. Adds significant performance boost if the sky can be rendered opaque. See RenderingOpaqueSky for more.

UseTextureTinting [StaticBool=False]

Use TextureTint input to tint the emissive component. Samples the input texture at three layers and mixes in the texture color. NOTE: This adds significant cost to the performance. See UsingTextureTinting for more.

InTextureTint [Texture Object]

Spherical texture used for emissive tint (mapped as LongLat).

MF_PlanetesimalSkyMixin_MA

Material attributes version of the MF_PlanetesimalSkyMixin function. For details see above.

MF_DualScatter_Sky

Core function for implementing the sky atmospheric scattering effect. For advanced use cases only. For basic atmospheric scattering effect see MF_PlanetesimalSkyMixin and MF_PlanetesimalSkyMixin_MA, which also provide an example of how to use this material function properly.