Page 1 of 1

LWRP : Fetch Ligthmap Value - not working

PostPosted: Mon Feb 04, 2019 4:37 pm
by HansBernd
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

Re: LWRP : Fetch Ligthmap Value - not working

PostPosted: Tue Feb 05, 2019 4:10 pm
by Amplify_Borba
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.