Vertex and Fragment Shader worldNormal

How to access/calculate worldNormal in a Vertex and Fragment shader ?

Since the normal is in object coordinates when received from the vertices in the mesh, you need to transform it to world space. This is done by multiplying it with the object’s model matrix. This matrix is called “_Object2World” in shaders, e.g.:

worldNormal = mul(_Object2World, objectNormal);