Translucency or Transmission in Deferred rendering

Node-based Shader Editor

Translucency or Transmission in Deferred rendering

Postby DuvE » Mon Feb 11, 2019 10:00 pm

Hi,

I'm trying to create a Grass shader with ASE. Usually, grass shaders have Transmission, but it seems that you can't use either Transmission or Tranclucion in Deferred rendering. When using Custom Lighting the shader become Deferred too. Is there a way to create Transmission effect in a deferred shader?
DuvE
 
Posts: 43
Joined: Thu Nov 23, 2017 6:46 pm

Re: Translucency or Transmission in Deferred rendering

Postby Amplify_Borba » Thu Feb 14, 2019 3:21 pm

Hello, just to clarify our Custom Lighting is Forward only, so it won't be possible create a deferred shader.

We've previously shared a solution on how to replace Unity's own grass shader in this post, but it seems that you're looking for something more specific.

Could you please elaborate on how what sort of implementation you're looking into?
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Translucency or Transmission in Deferred rendering

Postby DuvE » Thu Feb 14, 2019 9:16 pm

Basically, I want to create a simple Standart shader with Transmission in Deferred. I/m placing grass in my project with particles, not with Grass tool from the terrain. Here is the shader in Forward mode and I need this shader in Deferred. I've also changed by hand how Transmission work.

From:

half3 transmission = max(0 , -dot(s.Normal, gi.light.dir)) * gi.light.color * s.Transmission;

To:

half3 transmission = gi.light.color * s.Transmission;

I was trying to change the whole inline half4 LightingStandardCustom(SurfaceOutputStandardCustom s, half3 viewDir, UnityGI gi ) function to same for a Deferred mode (with this manual https://docs.unity3d.com/Manual/SL-Surf ... hting.html), but failed.
Attachments
test0003.7z
(2.26 KiB) Downloaded 253 times
DuvE
 
Posts: 43
Joined: Thu Nov 23, 2017 6:46 pm

Re: Translucency or Transmission in Deferred rendering

Postby Amplify_Borba » Fri Feb 15, 2019 9:53 am

Unfortunately I don't believe that you can do this with Unity's deferred rendering path, since it does not support it, you would have to create a custom deferred shading model to replace Unity's built-in, but this is outside of the scope of ASE.

In short, ASE only supports the authoring of shaders with Translucency and Transmission in Forward.
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am


Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 12 guests