I need help with my glass material. For some reason when I add glass to my scene it makes these little dots which I can´t get rid of.
This is the node editor for my glass material.
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.Sign up to join this community
If your glass is always just planar and you don't need to use refraction for artistic reasons (all the light that enters your glass just goes to the other side in a parallel fashion, or gets reflected), then you can replace the Glass material with a material that is mostly transparent, but reflects at extreme angles:
"flat" glass material
when you use this material, your window needs to be just a plane, not a solid.
These are the two options compared: a) glass shader on a solid window, b) "flat" glass material (see above) on a flat (2D) window.
As you can see, reducing the unnecessary light path calculations "through the glass" makes the render less noisy.
Glass is prone to do that; those dots are technically called "fireflies". For your shader, I suggest adding volume effects, like volume absorption, to handle the inside of the glass, as typical shades only work with the surface without them (and actual glass is very volumetric). The rest of it is an artifact of ray casting, which you can typically get around by increasing the size of your light source, or lowering its intensity.
Another possibility, if none of that helps enough, is to go to your rendering settings and reduce the number of bounces. Good luck!