- Home /
Surface Shader World Normal
Hey everyone,
I would like to know what is the difference in term of performance, usage and compatibility between :
float3 worldNormal = WorldNormalVector(IN, o.Normal);
and
float3 worldNormal = mul( _Object2World, float4(o.Normal, 0.0)).xyz;
Comment
Your answer
Follow this Question
Related Questions
Prevent ColorMask obscuring parts of an object's mesh 0 Answers
How to make shader supporting normal maps with worldPos based UV-mapping? 0 Answers
Modify Color in Surface Shader After Lighting (Forward Rendering) 0 Answers
Seam on Procedural Mesh 1 Answer
How to add Bump/Normal Map to surface shader? (CG) 0 Answers