 9092858a58
			
		
	
	
		9092858a58
		
	
	
	
	
		
			
			I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
		
			
				
	
	
		
			27 lines
		
	
	
		
			696 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			696 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| // Helper API to create custom XR layout
 | |
| 
 | |
| #if ENABLE_VR && ENABLE_XR_MODULE
 | |
| 
 | |
| namespace UnityEngine.Rendering.Universal
 | |
| {
 | |
|     internal struct XRLayout
 | |
|     {
 | |
|         internal Camera camera;
 | |
|         internal XRSystem xrSystem;
 | |
| 
 | |
|         internal XRPass CreatePass(XRPassCreateInfo passCreateInfo)
 | |
|         {
 | |
|             XRPass pass = XRPass.Create(passCreateInfo);
 | |
|             xrSystem.AddPassToFrame(pass);
 | |
|             return pass;
 | |
|         }
 | |
| 
 | |
|         internal void AddViewToPass(XRViewCreateInfo viewCreateInfo, XRPass pass)
 | |
|         {
 | |
|             pass.AddView(viewCreateInfo.projMatrix, viewCreateInfo.viewMatrix, viewCreateInfo.viewport, viewCreateInfo.textureArraySlice);
 | |
|         }
 | |
|     }
 | |
| }
 | |
| 
 | |
| #endif
 |