浏览代码

Package update

/demo-work
André McGrail 5 年前
当前提交
4a3a73a5
共有 5 个文件被更改,包括 20 次插入16 次删除
  1. 20
      Packages/com.unity.render-pipelines.core/Runtime/Common/XRGraphics.cs
  2. 10
      Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Templates/BuildSurfaceDescriptionInputs.template.hlsl
  3. 2
      Packages/com.unity.render-pipelines.universal/Shaders/PostProcessing/BokehDepthOfField.shader
  4. 2
      Packages/com.unity.render-pipelines.universal/package.json
  5. 2
      Packages/com.unity.shadergraph/package.json

20
Packages/com.unity.render-pipelines.core/Runtime/Common/XRGraphics.cs


{
get
{
#if ENABLE_XR_MODULE && ENABLE_XR
#if ENABLE_VR_MODULE
if (enabled)
return XRSettings.eyeTextureResolutionScale;
#endif

{
get
{
#if ENABLE_XR_MODULE && ENABLE_XR
#if ENABLE_VR_MODULE
if (enabled)
return XRSettings.renderViewportScale;
#endif

{
get
{
#if ENABLE_XR_MODULE && ENABLE_XR
#if ENABLE_VR_MODULE
return XRSettings.enabled;
#else
return false;

{
get
{
#if ENABLE_XR_MODULE && ENABLE_XR
#if ENABLE_VR_MODULE
if (enabled)
return XRSettings.isDeviceActive;
#endif

{
get
{
#if ENABLE_XR_MODULE && ENABLE_XR
#if ENABLE_VR_MODULE
if (enabled)
return XRSettings.loadedDeviceName;
#endif

{
get
{
#if ENABLE_XR_MODULE && ENABLE_XR
#if ENABLE_VR_MODULE
if (enabled)
return XRSettings.supportedDevices;
#endif

{
get
{
#if ENABLE_XR_MODULE && ENABLE_XR
#if ENABLE_VR_MODULE
if (enabled)
return (StereoRenderingMode)XRSettings.stereoRenderingMode;
#endif

{
get
{
#if ENABLE_XR_MODULE && ENABLE_XR
#if ENABLE_VR_MODULE
if (enabled)
return XRSettings.eyeTextureDesc;
#endif

{
get
{
#if ENABLE_XR_MODULE && ENABLE_XR
#if ENABLE_VR_MODULE
if (enabled)
return XRSettings.eyeTextureWidth;
#endif

{
get
{
#if ENABLE_XR_MODULE && ENABLE_XR
#if ENABLE_VR_MODULE
if (enabled)
return XRSettings.eyeTextureHeight;
#endif

10
Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Templates/BuildSurfaceDescriptionInputs.template.hlsl


$SurfaceDescriptionInputs.uv3: output.uv3 = input.texCoord3;
$SurfaceDescriptionInputs.VertexColor: output.VertexColor = input.color;
$SurfaceDescriptionInputs.TimeParameters: output.TimeParameters = _TimeParameters.xyz; // This is mainly for LW as HD overwrite this value
$SurfaceDescriptionInputs.FaceSign: #if defined(SHADER_STAGE_FRAGMENT) && defined(VARYINGS_NEED_CULLFACE)
$SurfaceDescriptionInputs.FaceSign: output.FaceSign = IS_FRONT_VFACE(input.cullFace, true, false);
$SurfaceDescriptionInputs.FaceSign: #endif
#if defined(SHADER_STAGE_FRAGMENT) && defined(VARYINGS_NEED_CULLFACE)
#define BUILD_SURFACE_DESCRIPTION_INPUTS_OUTPUT_FACESIGN output.FaceSign = IS_FRONT_VFACE(input.cullFace, true, false);
#else
#define BUILD_SURFACE_DESCRIPTION_INPUTS_OUTPUT_FACESIGN
#endif
$SurfaceDescriptionInputs.FaceSign: BUILD_SURFACE_DESCRIPTION_INPUTS_OUTPUT_FACESIGN
#undef BUILD_SURFACE_DESCRIPTION_INPUTS_OUTPUT_FACESIGN
return output;
}

2
Packages/com.unity.render-pipelines.universal/Shaders/PostProcessing/BokehDepthOfField.shader


return half4(avg, coc);
}
void Accumulate(float4 samp0, float2 uv, float2 disp, inout half4 farAcc, inout half4 nearAcc)
void Accumulate(float4 samp0, float2 uv, float2 disp, inout float4 farAcc, inout float4 nearAcc)
{
float dist = length(disp);

2
Packages/com.unity.render-pipelines.universal/package.json


"render",
"pipeline"
]
}
}

2
Packages/com.unity.shadergraph/package.json


"dependencies": {
"com.unity.render-pipelines.core": "7.1.1"
}
}
}
正在加载...
取消
保存