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;
});