Search Unity

WRLD Unity SDK Shader Error

Discussion in 'Shaders' started by RoyalCoder, May 24, 2018.

  1. RoyalCoder

    RoyalCoder

    Joined:
    Oct 4, 2013
    Posts:
    301
    Hi friends,

    I'm using Unity 2018.2.0b4 version, and WRLD Unity SDK, when I'm trying to make build I get this shader error:

    Shader error in 'Wrld/StandardWithVertexColor': 'mainLight': initial value must be a literal expression at Assets/Wrld/Shaders/UnityVC.cginc(153) (on d3d11)

    Compiling Vertex program with UNITY_PASS_FORWARDBASE DIRECTIONAL LIGHTPROBE_SH _ALPHABLEND_ON _VERTEXCOLOR_OFF
    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_COLORSPACE_GAMMA UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR

    Any suggestions how can we fix this?
    Thanks in advance!