Skip to content

Commit

Permalink
Update shaders.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ivder committed Apr 12, 2024
1 parent d07573c commit 666f763
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions shaders.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,27 @@ For more details, you can check the following folders and files:

- **Packages/HISPlayerSDK/HisPlayer/Resources/RenderTextures/**
- **HISPlayerDefaultRenderTexture.renderTexture** - This file is a custom RenderTexture to be used with the **HISPlayerDefaultMaterialRenderTexture.mat**.

## HISPlayer 360 Shader for Linear Color Space
If you are using **HISPlayer SDK version 3.4.0** and above, you will find **HISPlayer360Shader.shader** in *Packages/com.hisplayer.hisplayersdk/HISPlayer/Scripts/Shaders/*.
<p align="center">
<img width="70%" alt="image" src="https://github.com/HISPlayer/UnityAndroid-SDK/assets/32887298/e95a25a0-82ca-4c7b-b27b-e5ea3a84ae84">
</p>

When building 360 application, you might use different shaders such as the Unity Skybox/Panoramic shader.

If you use Linear Color Space, please change the default shader to HISPlayer360Shader which will improve the video rendering quality by following these steps :
* Open your 360 material, for example: Assets/HISPlayerOculusSample/Resources/RenderTextures/Materials/HISPlayer_360_Material.mat
<p align="center">
<img width="70%" alt="image" src="https://github.com/HISPlayer/UnityAndroid-SDK/assets/32887298/2e32d3c3-86b9-4bc2-829a-e1750a8524ba">
</p>

* In the Inspector window, change Shader to HISPlayer360Shader
<p align="center">
<img width="60%" alt="image" src="https://github.com/HISPlayer/UnityAndroid-SDK/assets/32887298/a981eb80-d2e6-4c99-8ba6-201d4ca615a9">
</p>

* Make sure you have the following setting of the material:
<p align="center">
<img width="60%" alt="image" src="https://github.com/HISPlayer/UnityAndroid-SDK/assets/32887298/5ba12394-cc6a-4846-b7fc-4a682669dd66">
</p>

0 comments on commit 666f763

Please sign in to comment.