You just need to change the following lines as below, then recompile the custom material node.117 float3 IridescenceBRDF(float3 L, float3 V, float3 N, float The fresnel bias was just my attempt to remove the fresnel from the default lit shading model, so you can disregard it.
Searched but couldn't find anything. Sorry if this has been asked before (wouldn't be surprised). Also hope I got the "polarized colored reflections" term correct. How would you guys go about making this kind of reflections in UE4? In UE3 you could just simply add the colors on the specular without having to modify the…
I know this is a bit old by now, but I've been trying to recreate iridescence like a Boelen's python or Brazilian rainbow boa would have, would this shader work for that or do you possibly have some suggestions on how to achieve that effect?
Looking at the Supplementary pdf and your materials at a glance, in your material you have Eta2, Eta3 and Kappa Im confused with which of the material parameter names corresponds to what names in the supplementary.pdf Eta2= n2? eta3 = n3 and kappa = K3? also with the code update I did OPD = Dinc*cosTheta2; to OPD = 2 *…
eta2 == n2 eta3 == n3 kappa = k3 If your using thickness as a parameter then trying to use Dinc is meaningless. if the thickness is 350nm then you would input 0.35 for the thickness. As far as matching up the supplementary material goes it should match the behaviour and colours. There is a limitation with using the custom…
I managed to finish this up. Turns out that this does not require a new shading model: I found out a couple days ago that you can include custom shader files from a material custom node. https://forums.unrealengine.com/development-discussion/rendering/1409859-custom-hlsl-tips Also, the model only uses the mirror direction…
Continuing on from my previous post. I managed to fix the colours so that they are sort of the same given the same inputs and did some validation against BRDF explorer. The problem was because there was no skylight calculation happening for the shading model.
I am new to unreal and am trying to make a moonstone material. Like the pearl material only a solid blue iridescence. I am trying to mess with the files stororokw gave and am really lost as to what to edit in order to keep the iridescence while changing the base color to a more creamy white. If anyone here could help with…
Wow, brilliant work! Thank you so much
for sharing this with us! One question; if I
understand correctly, the Dinc value is the thickness of the thin film? If so,
would it be possible to remap it to a nm value instead? Is it just a factor of thousand maybe? I'm trying to match
the material examples in the paper you based…