Search Issue Tracker
Fixed in 3.4.0
Fixed in 4.0.0
Votes
0
Found in [Package]
3.4.0
Issue ID
1073635
Regression
Yes
Shader compile error caused by parameters of SAMPLE_TEXTURECUBE_SHADOW on SRP using coord3 instead of coord4
To reproduce:
1. Open attached project "TestSRPBug.zip (2.2 MB)"
2. Select test1.shader asset
3. In the inspector window observe "undeclared identifier 'coord3'" errors
Reproduced on:
SRP 3.4.0
Not reproduced on:
SRP 3.0.0
Open Assets > CoreRP > ShaderLibrary > API > D3D11.hlsl observe line nr. 105:
#define SAMPLE_TEXTURECUBE_SHADOW(textureName, samplerName, coord4) textureName.SampleCmpLevelZero(samplerName, (coord3).xyz, (coord3).w)
As in #define coord4 is used, but SampleCmpLevelZero uses coord3.
This is true to SAMPLE_TEXTURECUBE_SHADOW in all .hlsl files.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- NullReferenceException is thrown when creating the TextMeshPro component and entering the Play Mode without importing TMP Essentials
- [Linux] Player crash on Shader::SRPBatcherInfoSetup when opening player build
- [Android] FPS does not match the targeted FPS when it is set with Application.targetFrameRate
- RenderPipelineManager.activeRenderPipelineTypeChanged does not detect changes when changing the Render Pipeline Asset outside of Play Mode
- The Scene View becomes gray and "NullReferenceException" errors are thrown when attaching the Unity Editor process to RenderDoc
Add comment