Edit the Unity3d shader slightly
Оплачивается при доставке
I am using the Aura 2 volumetric lighting asset in my project. Out of the box custom shaders do not support transparency in fog and lighting. You have to take the API from the documentation and edit the shader, which I will provide you with. And also write another generic shader for regular transparent materials. There will be screenshots of the problem and the Aura 2 API below. I will give out the project with Aura 2 after the order has been agreed.
SHADER - [login to view URL]
"The volumetric illumination computed by Aura is globally available and can be
easily retrieved to lit objects.
Be aware that this illumination doesn’t take into account any BRDF nor Lambertian
Aura can be implemented in your own custom shaders (transparent or not) in 3
very piece-of-cake steps.
1. Include “[login to view URL]” located in the “/Aura 2/System/Code/Shaders/” folder.
#include "Assets/Aura 2/System/Code/Shaders/[login to view URL]"
2. In the Vertex Shader, compute the position inside the Aura frustum with
float3 Aura2_GetFrustumSpaceCoordinates(float4 inVertex)
3. You can now apply the volumetric lighting with the following method
void Aura2_ApplyLighting(inout float3 colorToApply, float3
screenSpacePosition, float lightingFactor)
and/or apply the fog with the following overloads
void Aura2_ApplyFog(inout float3 colorToApply, float3
void Aura2_ApplyFog(inout float4 colorToApply, float3
ID проекта: #37199754