Ваши комментарии
Figured out a temporary solution for getting normal maps to work with terrain. Replace this line (note that this line is in 2 places, so replace both):
With:
And the normal maps should work.
float3 normalDirection = normalize(mul( normalLocal, tangentTransform )); // Perturbed normals
With:
float3 normalDirection = normalize( normalLocal )); // Perturbed normals
And the normal maps should work.
I can't seem to get normal maps working with terrain. The splats work great, but the terrain doesn't seem to be applying the normals. The shader preview in Shader Forge shows the normals taking effect, so I'm pretty confused. What did I forget to do?
Here's my chain: http://i.imgur.com/pBPdeMA.jpg
And here's the terrain: http://i.imgur.com/KCJIjqJ.png
No normals. :(
Here's my chain: http://i.imgur.com/pBPdeMA.jpg
And here's the terrain: http://i.imgur.com/KCJIjqJ.png
No normals. :(
Сервис поддержки клиентов работает на платформе UserEcho
i.e., replace
tex2D(_Normal0,TRANSFORM_TEX(node_#.rg, _Normal0))).rgb
with
tex2D(_Normal0,TRANSFORM_TEX(node_#.rg, _Splat0))).rgb