drawEnvironment method

  1. @override
EnvironmentMap drawEnvironment(
  1. Lighting lighting
)

The environment this material lights a draw with: its own override, or the scene's.

Implementation

@override
EnvironmentMap drawEnvironment(Lighting lighting) =>
    environment ?? lighting.environmentMap;