Skip to content

[HDRP] Backport various PRs #6742

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Jan 13, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
676abe4
Fix FBX Material
sebastienlagarde Jan 13, 2022
1efbfc7
[HDRP] Fix rendering when adding an incompatible platform to the proj…
alelievr Dec 16, 2021
e0159e3
Updated Physically Based Sky documentation with more warnings about w…
JulienIgnace-Unity Dec 16, 2021
584aef3
Fixed shaders craeted with the custom pass renderers template not bei…
alelievr Dec 16, 2021
a43d0ac
Fixed the fade in mode of the clouds not impacting the volumetric clo…
anisunity Dec 15, 2021
4d23805
Avoid typed load on volumetric fog filtering on platforms that don't …
FrancescoC-unity Dec 16, 2021
a4125a3
Fixed the property name of screen weight distance (#6586)
emilybrown1 Dec 16, 2021
2574e77
Documentation and images for custom mip for texture samplers (#6592)
kecho Dec 15, 2021
d85eec1
Fixed potential asymmetrical resource release in the volumetric cloud…
anisunity Dec 15, 2021
27b6b11
Fixed the intensity of the sky being reduced signficantly even if the…
anisunity Dec 16, 2021
589896f
Fixed the rt screen space shadows not using the correct asset for all…
anisunity Dec 15, 2021
a77ae96
Urp/fix 1378692 #6627
esdasuka Jan 13, 2022
4c3633d
Fixed a crash with render graph viewer #6629
JulienIgnace-Unity Dec 16, 2021
e929054
[HDRP] Fix tile/cluster debug for Decal and Fog #6635
simonb-unity Dec 17, 2021
631c113
Minor rewording of PT doc. (#6637)
eturquin Dec 16, 2021
22b1882
Changed the behavior the max ray length for recursive rendering to m…
anisunity Dec 18, 2021
14cbeeb
Fix (#6649)
FrancescoC-unity Jan 12, 2022
a891c80
[HDRP] Fix issue with dynamic RendererList culling option getting ign…
pmavridis Jan 13, 2022
90ae3cc
Review new warmup cost section (#6683)
Vic-Cooper Jan 13, 2022
6bef275
Path fixes (#6692)
Vic-Cooper Jan 13, 2022
be0516d
fixed typo "pratices" -> "practices" in ToC (#6699)
emilybrown1 Jan 13, 2022
7207148
fixed link to decal.md (#6700)
emilybrown1 Jan 13, 2022
1a9b185
Volume docs bugfixes (#6714)
Vic-Cooper Jan 13, 2022
083b2e2
NeedMotionVectorForTransparent was checking for wrong flag #6719
FrancescoC-unity Jan 12, 2022
ef92126
[HDRP][Tooltips] Fixed some tooltips for Local Volumetric Fog #6722
JMargevics Jan 13, 2022
1f126cc
[Fogbugz # 380357] Fixing negative overflowing of IES attenuation spl…
kecho Jan 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed shaders craeted with the custom pass renderers template not bei…
…ng compatible with SRP batcher (case 1383694) (#6501)
  • Loading branch information
alelievr authored and sebastienlagarde committed Jan 13, 2022
commit 584aef36b6e005757a781c1289eee5716e36d001
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Shader "Renderers/#SCRIPTNAME#"

// Transparency
_AlphaCutoff("Alpha Cutoff", Range(0.0, 1.0)) = 0.5
[HideInInspector]_BlendMode("_BlendMode", Range(0.0, 1.0)) = 0.5
}

HLSLINCLUDE
Expand Down Expand Up @@ -56,13 +57,22 @@ Shader "Renderers/#SCRIPTNAME#"
// List all the varyings needed in your fragment shader
#define VARYINGS_NEED_TEXCOORD0
#define VARYINGS_NEED_TANGENT_TO_WORLD

#include "Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/RenderPass/CustomPass/CustomPassRenderers.hlsl"

#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Common.hlsl"

TEXTURE2D(_ColorMap);

// Declare properties in the UnityPerMaterial cbuffer to make the shader compatible with SRP Batcher.
CBUFFER_START(UnityPerMaterial)
float4 _ColorMap_ST;
float4 _Color;

float _AlphaCutoff;
float _BlendMode;
CBUFFER_END

#include "Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/RenderPass/CustomPass/CustomPassRenderersV2.hlsl"

// If you need to modify the vertex datas, you can uncomment this code
// Note: all the transformations here are done in object space
// #define HAVE_MESH_MODIFICATION
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#ifndef CUSTOM_PASS_RENDERERS_V2
#define CUSTOM_PASS_RENDERERS_V2

#define SHADERPASS SHADERPASS_FORWARD_UNLIT

//-------------------------------------------------------------------------------------
// Define
//-------------------------------------------------------------------------------------

#include "Packages/com.unity.render-pipelines.high-definition/Runtime/ShaderLibrary/ShaderVariables.hlsl"
#include "Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/ShaderPass/FragInputs.hlsl"
#include "Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/ShaderPass/ShaderPass.cs.hlsl"

#include "Packages/com.unity.render-pipelines.high-definition/Runtime/Material/Material.hlsl"
#include "Packages/com.unity.render-pipelines.high-definition/Runtime/Material/Unlit/Unlit.hlsl"
#include "Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/ShaderPass/VaryingMesh.hlsl"

#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Sampling/SampleUVMapping.hlsl"
#include "Packages/com.unity.render-pipelines.high-definition/Runtime/Material/BuiltinUtilities.hlsl"
#include "Packages/com.unity.render-pipelines.high-definition/Runtime/Material/MaterialUtilities.hlsl"
#include "Packages/com.unity.render-pipelines.high-definition/Runtime/Material/Decal/DecalUtilities.hlsl"

float _CustomPassInjectionPoint;
float _FadeValue;

#endif // CUSTOM_PASS_RENDERERS_V2

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.