LWRP Custom Lighting & Bug
Posted: Fri Oct 19, 2018 6:17 pm
Hi,
I'm currently attempting to convert a project from the standard pipeline over to the LWRP and part of the process involves converting custom lighting amplify shaders to the new lightweight amplify templates to match compatibility.
I'm almost able to achieve the same results by plugging my previous custom lighting into the PBR template emission or the unlit color outputs however I hit a snag when trying to work with indirect light (Diffuse or Specular). It's easily replicated by creating an empty lightweight shader and plugging in either of the existing indirect light nodes.
The error seems to point to a cginc file, "UnityLightingCommon" for an "Unrecognized identifier 'fixed4'". I attempted to fix it manually by swapping the fixed4's for half4s or float4s which at least made visual studio happy but unfortunately the shader continues to throw the same error, pointing at a seemingly non-existent fixed4.
Any help or pointers would be appreciated!
I'm currently attempting to convert a project from the standard pipeline over to the LWRP and part of the process involves converting custom lighting amplify shaders to the new lightweight amplify templates to match compatibility.
I'm almost able to achieve the same results by plugging my previous custom lighting into the PBR template emission or the unlit color outputs however I hit a snag when trying to work with indirect light (Diffuse or Specular). It's easily replicated by creating an empty lightweight shader and plugging in either of the existing indirect light nodes.
The error seems to point to a cginc file, "UnityLightingCommon" for an "Unrecognized identifier 'fixed4'". I attempted to fix it manually by swapping the fixed4's for half4s or float4s which at least made visual studio happy but unfortunately the shader continues to throw the same error, pointing at a seemingly non-existent fixed4.
Any help or pointers would be appreciated!