Search found 7 matches

by zamboni
Wed May 02, 2018 5:54 pm
Forum: Amplify Shader Editor
Topic: Accessing _CameraDepthNormalsTexture
Replies: 3
Views: 1822

Re: Accessing _CameraDepthNormalsTexture

I was creating the shader on version 1.5.2, and had upgraded from 1.5.1. Note the shader did not exist while I was on 1.5.1, as I was creating it after the import was done.

My Unity version is 2017.3.1f1 Personal.
by zamboni
Wed May 02, 2018 6:54 am
Forum: Amplify Shader Editor
Topic: Accessing _CameraDepthNormalsTexture
Replies: 3
Views: 1822

Accessing _CameraDepthNormalsTexture

As the title says, I've been trying to access this, and I've made texture samplers with the same name, used the Grab Screen Color node with the name, etc, and I just can't seem to get it to work.

Any help would be appreciated!

EDIT:

Apologies, restarting Unity seems to have fixed it, and I can ...
by zamboni
Tue May 01, 2018 4:47 am
Forum: General Discussion
Topic: Sobel Depth
Replies: 2
Views: 6363

Re: Sobel Depth

I believe I could do it if I could access _CameraDepthNormalsTexture from ASE, but I'm not sure how to do that.
I'd like to sample the normals of all pixels on the screen, but I don't know how to change that.
by zamboni
Tue May 01, 2018 12:05 am
Forum: General Discussion
Topic: Sobel Depth
Replies: 2
Views: 6363

Sobel Depth

Hi there. Not sure if this should go in this section or not, so sorry in advance.

I've been further extending my intersection shader to show sobel inside the sphere, and this is using the built-in SobelMain shader function provided by Amplify. I modified it to read screen color directly instead of ...
by zamboni
Tue Apr 03, 2018 6:35 pm
Forum: Amplify Shader Editor
Topic: Porting Shader From Unreal
Replies: 5
Views: 3673

Re: Porting Shader From Unreal

Thanks for the reply, but I actually figured it out. It was an issue of my units!
I changed "Hardness" to 200, and "Radius" to 0.5.
Then I also changed the opacity to 1 - SphereMask's output, now it works great!

https://cdn.discordapp.com/attachments/423170209881391108/430796653008519180/unknown ...
by zamboni
Tue Apr 03, 2018 4:19 pm
Forum: Amplify Shader Editor
Topic: Porting Shader From Unreal
Replies: 5
Views: 3673

Re: Porting Shader From Unreal

Sure thing, I've attached the shader and its material, along with the material functions.
I did modify SphereMask to behave a bit more like UE4's version, but only by replacing an input.
by zamboni
Mon Apr 02, 2018 8:51 pm
Forum: Amplify Shader Editor
Topic: Porting Shader From Unreal
Replies: 5
Views: 3673

Porting Shader From Unreal

I'm quite new to unity shaders, newer still to Amplify Shader Editor, and there's a shader I'd like to port from Unreal.

The shader should be applied to a sphere object, and will highlight all intersecting geometry.

I've seemingly placed the same nodes as I had in UE4, yet the output is not the ...