diff --git a/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/HDShaderPasses.cs b/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/HDShaderPasses.cs index 8941e6cab28..8bbbaa08f64 100644 --- a/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/HDShaderPasses.cs +++ b/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/HDShaderPasses.cs @@ -288,7 +288,8 @@ public static PassDescriptor GenerateMotionVectors(bool supportLighting) RenderStateCollection GenerateRenderState() { - var renderState = CoreRenderStates.MotionVectors; + var renderState = new RenderStateCollection(); + renderState.Add(CoreRenderStates.MotionVectors); if (!supportLighting) { @@ -1014,8 +1015,8 @@ public static class Defines public static DefineCollection shadowHigh = new DefineCollection { {CoreKeywordDescriptors.Shadow, 2} }; // Raytracing Quality - public static DefineCollection raytracingLow = new DefineCollection { {RayTracingNode.GetRayTracingKeyword(), 0} }; - public static DefineCollection raytracingHigh = new DefineCollection { {RayTracingNode.GetRayTracingKeyword(), 1} }; + public static DefineCollection raytracingLow = new DefineCollection { {RayTracingNode.GetRayTracingKeyword(), 1} }; + public static DefineCollection raytracingHigh = new DefineCollection { {RayTracingNode.GetRayTracingKeyword(), 0} }; } #endregion