Skip to content

Commit 69cedd0

Browse files
gabrieldelacruzjulienf-unity
authored andcommitted
Fix compute culling compilation in URP (case 1309174) (#210)
* Add GeometricTools.hlsl include Missing include containing DistanceFromPlane function used by IsSphereOutsideFrustum * Update changelog
1 parent cea5f5e commit 69cedd0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

com.unity.visualeffectgraph/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1313
- Modified Sign operator node output for float when input is 0.0f [Case 1299922](https://fogbugz.unity3d.com/f/cases/1299922/)
1414
- Use alphabetical order in type list in blackboard "+" button [Case 1304109](https://issuetracker.unity3d.com/product/unity/issues/guid/1304109/)
1515
- Consistently displays the Age Particles checkbox in Update context [Case 1221557](https://issuetracker.unity3d.com/product/unity/issues/guid/1221557/)
16+
- Fix compute culling compilation in URP [Case 1309174](https://fogbugz.unity3d.com/f/cases/1309174/)
1617

1718
## [10.3.1] - 2020-01-26
1819

com.unity.visualeffectgraph/Shaders/VFXOutputUpdate.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ CBUFFER_END
4545

4646
${VFXGeneratedBlockFunction}
4747

48+
#if VFX_FEATURE_FRUSTUM_CULL || VFX_FEATURE_LOD
49+
#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/GeometricTools.hlsl"
50+
4851
bool IsSphereOutsideFrustum(float3 pos, float radius, float4 frustumPlanes[6])
4952
{
5053
bool outside = false;
@@ -53,6 +56,7 @@ bool IsSphereOutsideFrustum(float3 pos, float radius, float4 frustumPlanes[6])
5356
outside = outside || DistanceFromPlane(pos, frustumPlanes[i]) < -radius;
5457
return outside;
5558
}
59+
#endif
5660

5761
[numthreads(NB_THREADS_PER_GROUP,1,1)]
5862
void CSMain(uint3 groupId : SV_GroupID,

0 commit comments

Comments
 (0)