Partilock Download

Partilock / Guides

Window glass in Blender that lets the sun in

By Valdemar Kobelis, who builds Partilock. Updated 2026-11-02.

You put physically correct glass in the window and the room goes dark. That's the most common glass problem in archviz, and it has a one-click fix. Here is the material, the fix, and what to do when the glass looks too clear or too dark.

Blender room with a glass pane in the window and no sunlight on the floor
Glass pane casts a shadow: no sun inside
The same room with a patch of sunlight on the floor after the glass stops casting shadows
Shadow turned off on the pane: the sun is back

Our own test scene in Blender 4.5, Cycles. Same material, same sun. The only difference is one checkbox on the glass object.

1. The glass material

  1. Use a Principled BSDF. Set Transmission > Weight to 1 and Roughness to 0.
  2. Leave IOR at 1.5. The manual calls the default a good approximation for glass.
  3. Keep Base Color white, or a very pale green or blue for a tint. With transmission on, the base colour tints the light that passes through, so a strong colour darkens the room.
  4. Name the material "glass". It makes it easy to find later, and some tools (Partilock among them) look for it.

2. Let sunlight through

In Cycles, direct sunlight doesn't pass through a refractive surface, so the pane casts a shadow like a wall does. The fix that works in both engines from 4.2 on:

  1. Select the glass panes. Keep them as separate objects from the frames.
  2. Open Object Properties > Visibility > Ray Visibility.
  3. Untick Shadow.

The glass still shows reflections to the camera and simply stops casting shadows. The older node trick does the same per material in Cycles: a Light Path node's Is Shadow Ray drives a Mix Shader between your glass and a Transparent BSDF. The checkbox is simpler, and the manual notes ray visibility is also faster than a node setup.

3. Panes: give them thickness

A single plane with refraction has a way in but no way out, so the view through it can shift. Real panes are a few millimetres thick:

4. More reflective glass

Face on, clear glass reflects only about 4% of the light, and much more at grazing angles. That's why a facade looks like a mirror from the side and see-through head on. To get stronger reflections:

EEVEE settings (4.2 and later)

  1. In Render Properties, tick Raytracing.
  2. In the glass material's Settings, keep Render Method on Dithered and tick Raytraced Transmission.
  3. Set Thickness to Slab. The manual recommends it for glass panels. For a single-plane pane, plug 0 into the Material Output's Thickness so EEVEE treats it as one surface.
  4. The Shadow checkbox from step 2 works in EEVEE too.

If the windows render black

Or render it in one click

If the glass only has to read as glass in a concept image, Partilock, the Blender add-on we build (macOS), sends the camera view to an AI image model and returns the image in about a minute. A real 2K render, unretouched:

The open-plan office as a Blender model seen through the scene camera
The Blender model
Partilock render of the same open-plan office from the same camera
Partilock render, 2K

The long window band came back as glazing with a city view behind it. Partilock counts materials named "glass" or using transmission as openings and checks they're still there. Note the ceiling downlights and track lights: they aren't in the model, which is the kind of addition to check for.

It's an image, not geometry, and it can add small fittings, so check it before a client sees it. 2 free renders to try (1K, watermarked), then 2K from $9 for 18. Install guide, pricing.

Next up, lighting the room behind the glass, or lit windows at dusk.