Baltor Get started

Gallery / Blender tools

Tinted glass with Beer-Lambert absorption

In your harnessBlender toolMIT

Build a glass material whose colour deepens with thickness: the tint is given as transmittance at a reference thickness and converted to exact Volume Absorption density and colour, under a clear transmissive surface. Use it for bottles, stained glass, gems and liquids.

Render of Tinted glass with Beer-Lambert absorption
The render its check recorded in Blender 5.2.1, 192 by 192 pixels.

What it takes and gives

Operator
baltor.material_glass_tinted
Parameters
material_name, tint, reference_thickness, ior, roughness, assign
Result
One material with a surface and a volume; assigned to the active object.
Blender
4.2 or later
Axes
Blender Z up, -Y forward
Units
metres

Limits. Absorption needs closed, correctly oriented meshes and a renderer that traces volumes inside objects (Cycles); EEVEE approximates refraction and volumes differently. No dispersion, no thin-film and no scattering inside the glass. Caustics depend on the renderer settings. Rendered here with Cycles CPU only. Verified in Blender 5.2.1; written for the 4.2 API.

Details

Kind
Blender tool
Engine
Blender 4.2 or later
Files
11 files, 122.6 KB
Licence
MIT
Declared effects
runs commands
Checked with
Blender 5.2.1, background (Cycles CPU for previews)
Checks
addon install and enable, operator runs with defaults, blender data matches core, addon disable unregisters, script mode runs, clean reopen addon file, clean reopen script file, gltf separate export, engine output clean
Techniques
Beer-Lambert law T = exp(-a d), Absorption coefficient a = -ln(T) / d per channel, Volume Absorption extinction density * (1 - colour)
Tags
blender, material, shader nodes, glass, transmission, volume, physics
Identity
library.supply.creative_originals.61c8aade4ba09d6075b524fc.e4d8dc5e58f86e46
Version
e4d8dc5e58f86e469d7236a4b4131653da072c92bae14c15e45fe291cf6b14a7

The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.

Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.