ReadmeURP.txt 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. This example is designed to work with the Universal Render Pipeline.
  2. It will work with versions of the Universal Rendering Pipeline in
  3. Unity version 2019.3 and later.
  4. It will not work correctly with the standard pipeline.
  5. See Unity URP documentation at:
  6. https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@11.0/manual/index.html
  7. If shader compilation errors occur, the version of the URP pipeline being used
  8. is not compatible with the provided shader. Generally this is due to evolving
  9. Unity package naming conventions prior to Unity version 2019.3
  10. This example requires some manual changes to work correctly. In order to prevent
  11. confusing errors when importing the UnityPackage into a Standard Pipeline
  12. package the Universal Render Pipeline shader is included as a ".txt" file, which
  13. will be ignored by the standard pipeline.
  14. To update this example to a working URP example, the following steps
  15. should be taken:
  16. - Start a new Universal Render Pipeline project
  17. (See https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@11.0/manual/index.html)
  18. - Import the GoogleMaps.UnityPackage
  19. - Outside the Unity Editor, rename
  20. "Assets/GoogleMaps/Examples/URPExample/Materials/GoogleURPBaseMap.shader.txt"
  21. to
  22. "GoogleURPBaseMap.shader"
  23. - Outside the Unity Editor, rename
  24. "Assets/GoogleMaps/Examples/URPExample/Materials/GoogleURPBaseMap.shader.txt.meta"
  25. to
  26. "GoogleURPBaseMap.shader.meta"
  27. - NOTE: the Unity environment does not show asset file extensions, so renaming the
  28. above files cannot be done from within the Unity Editor, and must be done through
  29. the Windows Explorer, Mac Finder, or equivalent.
  30. - Open the GoogleMaps/Examples/URPExample/Scenes/URPExample.unity scene
  31. - In the scene, disable (or delete) the "GameWorld > Instructions > URPOnlyText"
  32. UI element to remove warning overlay
  33. To exercise more Universal Render Pipeline functionality, and improve visuals
  34. the following steps can be taken to enable post processing effects and improve
  35. shadows:
  36. - Enable "Post Processing" for "GameWorld > DroneCameraRig > DroneCamera"
  37. - Select "Global Volume" in the scene root and set the Volume component "Profile"
  38. field to "GlobalVolumeProfile"
  39. - Set shadow distance in your Universal Render Pipeline asset to around 1500 meters,
  40. setting the number of cascades as desired. E.g., for a standard URP project
  41. configure shadow settings in one or all of:
  42. UniversalRP-HighQuality, UniversalRP-MediumQuality, UniversalRP-LowQuality