ShaderGlassSurface constructor

const ShaderGlassSurface({
  1. required Glass glass,
  2. required GlassShape shape,
  3. required Widget child,
  4. double intensity = 1.0,
  5. double thickness = 0.6,
  6. double refraction = 1.35,
  7. double blurSigma = 12,
  8. double lightAngle = -1.2,
  9. Key? key,
})

Creates a shader-rendered glass surface. The physical parameters default to the values fresnel's theme uses, so this is usable standalone.

Implementation

const ShaderGlassSurface({
  required this.glass,
  required this.shape,
  required this.child,
  this.intensity = 1.0,
  this.thickness = 0.6,
  this.refraction = 1.35,
  this.blurSigma = 12,
  this.lightAngle = -1.2,
  super.key,
});