项目作者: zigguratvertigo

项目描述 :
Tangent space normal map blending via quaternion rotation
高级语言:
项目地址: git://github.com/zigguratvertigo/ReorientedNormalMapping.git
创建时间: 2017-05-21T12:47:44Z
项目社区:https://github.com/zigguratvertigo/ReorientedNormalMapping

开源协议:MIT License

下载


Reoriented Normal Mapping

This repository constains the code for Reoriented Normal Mapping [1], a technique to compute proper blending of tangent space normals via quaternion rotation.

Details regarding the technique and how it compares to other approaches can be found here.

The code is provided in the form of a RenderMonkey project. You can download RenderMonkey here.

Implementation Summary

  1. float3 t = tex2D(BaseNormal, uv) * float3(2, 2, 2) + float3(-1, -1, 0);
  2. float3 u = tex2D(DetailNormal, uv) * float3(-2, -2, 2) + float3(1, 1, -1);
  3. float3 r = t * dot(t, u) / t.z u;

References

[1] Barré-Brisebois, Colin and Hill, Stephen. “Blending in Detail - Reoriented Normal Mapping”, 2012, Available Online.