Page 1 of 1

Triplanar Terrain Shader

PostPosted: Mon Apr 30, 2018 12:22 pm
by win
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

Re: Triplanar Terrain Shader

PostPosted: Mon Apr 30, 2018 1:07 pm
by win
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.