- Home /
HDRP shaders won't compile with shader model 6.3
When I build a pathtracing project with Unity 2020.1.0b1 and HDRP 8.0.1 I get errors like that.
error: validation errors at 0x175e48e3398 inside block ?ComputeFadeMaskSeed@@YA?AV?$vector@I$01@@V?$vector@M$02@@V1@@Z.exit.i of function ?ClosestHit@@YAXURayIntersection@@UAttributeData@@@Z Opcode Discard not valid in shader model lib_6_3(closesthit)
it turns out it comes from HDRP/Lit and HDRP/LayeredLit shaders. Is there a way to change the shader model or a newer version of these shaders ?
Comment
Your answer