Question by
Gabriel-Oliveira-Almeida · Apr 20 at 05:04 PM ·
shaderhlsl
Shader - Cant use TransformObjectToWorldNormal and TransformObjectToWorld
Hi i created an unlit shader and i trying to use the functions TransformObjectToWorldNormal() and TransformObjectToWorld(), and i keep having console erro of:
undeclared identifier 'TransformObjectToWorldNormal'
undeclared identifier 'TransformObjectToWorld'
I tried #include "UnityCG.cginc" but that dont sems to work, i cant find anywhere how to solve this problem.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613055627im_/https://answers.unity.com/themes/thub/images/avi.jpg)