init(program:)

Create a PortalMaterial with an already initialized Program. Use this method when you want to preload a library of shaders and create instances of them quickly and synchronously via PortalMaterial at runtime.

Declaration

init(program: PortalMaterial.Program)