getGeometryRoughness top-level property

dynamic getGeometryRoughness
getter/setter pair

Implementation

var getGeometryRoughness = ShaderNode(() {
  var dxy = max(abs(dFdx(normalGeometry)), abs(dFdy(normalGeometry)));
  var geometryRoughness = max(max(dxy.x, dxy.y), dxy.z);

  return geometryRoughness;
});