initializeStaticResources static method

Future<void> initializeStaticResources()

Builds the BRDF lookup texture used by the PBR fragment shader's split-sum specular IBL (see buildBrdfLutTexture).

Called by the Scene constructor; rendering is gated on the returned Future completing. The texture is built once and reused.

Implementation

static Future<void> initializeStaticResources() {
  _brdfLutTexture ??= buildBrdfLutTexture();
  return Future<void>.value();
}