VideoMaterial

constructor(blendingMode: BlendingMode, videoDimensionMode: VideoDimensionMode, cullingMode: MaterialCullingMode, defaultColor: Color4 = Color4.BLACK)

Creates a VideoMaterial with the specified BlendingMode, VideoDimensionMode, and MaterialCullingMode.

Parameters

blendingMode
videoDimensionMode

The VideoDimensionMode to use.

cullingMode
defaultColor

The default color of the VideoMaterial. The default value is Color4.BLACK. If set to Color4.TRANSPARENT, ensure blendingMode is set to BlendingMode.TRANSPARENT.

See also

. Note:VideoMaterial can be used to rendering video for both VideoComponent and VideoPlayerComponent, for VideoComponent rendering, a SurfaceRenderTexture will be needed to bind with VideoMaterial , for VideoPlayerComponent rendering, just need to create a VideoMaterial.