Dispersion/refraction shader doesn't change light direction properly

Hello. I’m experimenting with Blender optics on Cycles engine and tried to make a glass shader like in this video:

The effect of dispersion that shows on my prism’s surface doesn’t work similarly, same with the light transmission to another surface at different angles depending on the wavelength (color), even though I copied almost all of the contents of the shader and scene with the prism from the video. What’s wrong with my material, and how can I fix it? I think the only thing I could miss is something in the scene or render properties, but I don’t know clearly.
Files:
CDVertex’s prism.blend (2.8 MB)
My prism.blend (1.1 MB)

1 Like

Both materials for the light and the prism are not valid, they have red nodes which must be corrected.
Instead of rebuild you can append the materials from the original and start from there.

the shader for the stick light thingy was set to like 1000 instead of 1. If you want realistic results, you should also fix the colors on the color ramp for the prism material.

1 Like

Thanks, setting to 1 worked! Also, I didn’t even think that with my initial rotation of the prism, refraction could not occur.

I’m not sure I know what red nodes are. Can you explain?

Showed red cause i used an older version. My mistake.