<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">Looking at X3DOneSidedMaterialNode </span><a href="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/components/shape.html#X3DOneSidedMaterialNode" class="">https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-CD1/Part01/components/shape.html#X3DOneSidedMaterialNode</a> I can find there the calculation of the normal as following: </div><div class=""><br class=""></div><div class=""><div class=""><a href="http://normal.xyz" class="">normal.xyz</a> = normalize((textureSample(normalTexture).rgb * vec3(2,2,2) - vec3(1,1,1)) * vec3(normalScale, normalScale, 1))</div></div><div class=""><br class=""></div><div class="">Think the handling of <font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class="">normalScale is wrong, the vector must include 3 times normalScale, not z equal 1</span></font><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">, like so:</span></div><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class=""></span></div><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">vec3(normalScale, normalScale, </span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">normalScale)</span></div><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class=""></span></div><div class=""><font color="#000000" class="">The second issue I notices is that the normalScale is applied before normalization, but that means that it has not effect. Normalization means multiplying the vector with a factor, so that the length of the vector is one (1), this makes the multiplication with the normalScale factor undone.</font></div><div class=""><font color="#000000" class=""><br class=""></font></div><div class=""><font color="#000000" class="">Best regards,</font></div><div class=""><font color="#000000" class="">Holger.</font></div><div class=""><font color="#000000" class=""><br class=""></font></div></body></html>