Unity3d Occlusion intensity controller

Your feedback is very important to us. We are listening.

Unity3d Occlusion intensity controller

Postby jay_16 » Thu Aug 30, 2018 11:14 am

How to create a Shader in which I can control the intensity of the occlusion texture in Unity3d??
I am using an Object with 2 UV sets. On UV1 I want to control the intensity of texture ambient occlusion and on UV2i want to control the intensity of Object ambient occlusion.
jay_16
 
Posts: 3
Joined: Tue Aug 28, 2018 10:42 am

Re: Unity3d Occlusion intensity controller

Postby riyusaki » Thu Aug 30, 2018 11:55 am

I used the power node for this purpose. To switch the mapping channels using the scheme with "texturesCoordinates" and "StaticSwitch" but there are disadvantages, "tiling" and "offset" in this scheme is not taken from "SampleTexture" and from "TexturesCoordinates" it requires the creation of "tiling" and "offset" separately for each UVset.
Attachments
Снимок-экрана-2018-08-30-в-15.13.39.jpg
Снимок-экрана-2018-08-30-в-15.13.39.jpg (77.07 KiB) Viewed 2716 times
riyusaki
 
Posts: 4
Joined: Thu Aug 30, 2018 5:31 am

Re: Unity3d Occlusion intensity controller

Postby jay_16 » Thu Aug 30, 2018 12:33 pm

riyusaki wrote:I used the power node for this purpose. To switch the mapping channels using the scheme with "texturesCoordinates" and "StaticSwitch" but there are disadvantages, "tiling" and "offset" in this scheme is not taken from "SampleTexture" and from "TexturesCoordinates" it requires the creation of "tiling" and "offset" separately for each UVset.


Thank you riyusaki.Now i can control the intensity.tyvm
jay_16
 
Posts: 3
Joined: Tue Aug 28, 2018 10:42 am

Re: Unity3d Occlusion intensity controller

Postby Amplify_Borba » Thu Aug 30, 2018 2:48 pm

Hello Jay, thank you for getting in touch and for your support!

Happy to see that riyusaki was kind enough to reply, please don't hesitate to get back in touch if you have any further questions, hope that you're enjoying your time with ASE!
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 General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron