Search Issue Tracker
By Design
Votes
2
Found in [Package]
2.2.2
Issue ID
1210733
Regression
No
[Linux] [Post Processing] Shader error in 'Hidden/WorldPositionTint' when launching the project with OpenGL
How to reproduce:
1. Open the user's attached project (PostProcessingGLCamDepthTexBug.zip)
2. If there are no errors in console, enter Play mode
Expected results: Shaders work correctly, no errors in console
Actual results: Error in console regarding a shader error:
"Shader error in 'Hidden/WorldPositionTint': undeclared identifier 'sampler_CameraDepthTexture' at line 17 (on glcore)"
Reproducible with: PostProcessing 2.2.2 (2018.4.15f1, 2019.2.18f1, 2019.3.0f5, 2020.1.0a19)
Could not test on 2017.4 (no package manager)
Notes:
- The project on Vulkan does not have this error (launch the project with -force-vulkan to see)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [iOS] Application frequently crashes on Social.LoadAchievements call when many achievements are registered
- Errors “RenderPass: Attachment 0 is declared as depth attachment but RGBA8 sRGB is not a valid depth format.“ and “BeginSubPass: Not inside a Renderpass“ are present when using Native RenderPass with a RenderTexture that only has depth output
- ArgumentOutOfRangeException is thrown when an empty DropdownField is clicked at runtime
- [tvOS] "EXC_BAD_ACCESS" error is thrown when Painter2D.ClosePath is called
- Bad Naming Convention in Shortcuts Window for Sprite Shape Editing
Resolution Note:
the compilation is due to the fact that custom shader provided is using SampleLevel directly and not the macros provided. and OpenGL doesnot support SamplerStates.