irradianceEnabled function

bool irradianceEnabled(
  1. ShaderBindings b
)

Whether the field is read this draw.

Implementation

bool irradianceEnabled(ShaderBindings b) =>
    b.vec4(_block, 'origin', Vector4.zero()).w > 0.5 &&
    b.textures['irradiance_texture'] != null;