getBrdfLutTexture static method

Texture getBrdfLutTexture()

Returns the precomputed BRDF lookup texture used by the PBR fragment shader for environment-map specular sampling.

Loaded by initializeStaticResources; throws if accessed before initialization completes.

Implementation

static gpu.Texture getBrdfLutTexture() {
  if (_brdfLutTexture == null) {
    throw Exception('BRDF LUT texture has not been initialized.');
  }
  return _brdfLutTexture!;
}