Triplanar Terrain Shader

Node-based Shader Editor

Triplanar Terrain Shader

Postby win » Mon Apr 30, 2018 12:22 pm

Hello,

I'm trying to create a terrain shader with triplanar mapping for Unity. However I'm getting bad normals as a result.

Image

Image

Here you can see the graph and the broken normals in the Deferred Buffer.

Is there a solution for this?

Thankful for any help,
Win
win
 
Posts: 2
Joined: Mon Apr 30, 2018 10:38 am

Re: Triplanar Terrain Shader

Postby win » Mon Apr 30, 2018 1:07 pm

Solved it. Apparently you can't set texture samplers for normals to "normal unpack" in the terrain shader. Disabling that flag fixes all issues with both regular samplers and triplanar samplers.
win
 
Posts: 2
Joined: Mon Apr 30, 2018 10:38 am


Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 54 guests

cron