Clear coat shader compute question

when i saw the shader about clearcoatBlock, i found clearcoatVRrfract mad me Puzzled.


why refract parameters uses the worldposition?,Shouldn’t it be a direction vector from worldpos to eyePos?

I think @Evgeni_Popov was the one who made the block so he’s the best person to answer this :slight_smile:

Actually it’s @sebavan who wrote this code, so let’s ask him instead :slight_smile:

I’m not familiar with these computations and could not find the reference doc from “The order 1886”.

It puzzles me as well I ll have a look today, sounds like a typo to me :slight_smile:

thank you for your reply, are there any results so far?

It is fixed by this PR:

1 Like

thank you very much

snail

Can you explain what you mean by this? :slight_smile: