LWRP : Fetch Ligthmap Value - not working

Node-based Shader Editor

LWRP : Fetch Ligthmap Value - not working

Postby HansBernd » Mon Feb 04, 2019 4:37 pm

Hello there,

Using the Fetch Lightmap Value Shader function in the LWRP results in the following error :

Code: Select all
Shader error in 'Default_Opaque': redefinition of 'unity_Lightmap' at line 68 (on d3d11)

Compiling Vertex program
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHTMAP_RGBM_ENCODING


Shader type is Leightweight PBR.
Switching back to surface and not using LRWP makes the shader work again.

Please help me out,

Kind Regards,
HansBernd
HansBernd
 
Posts: 1
Joined: Mon Feb 04, 2019 1:01 pm

Re: LWRP : Fetch Ligthmap Value - not working

Postby Amplify_Borba » Tue Feb 05, 2019 4:10 pm

Hello, thank you for getting in touch and for your support!

Unfortunately, that Shader Function has been created specifically for the standard pipeline, so it will likely need to be adapted to support SRP.

I've submitted your feedback to the developer for further consideration and will let you know if we have any developments regarding this.
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am


Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 121 guests