Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

BNAO

> 编程语言
Open source

A tiny, GPU-based Bent Normal and Ambient Occlusion baker for Unity.

571 stars0 likes1 views
WebsiteGitHub

About

A tiny, GPU-based Bent Normal and Ambient Occlusion baker for Unity.

--> Successor/cousin repository

BNAO

Features

  • Supports baking ambient occlusion or bent normal maps from low-poly geometry, right in the editor.
  • Supports baking with alpha-tested materials.
  • Bakes textures for selected objects and automatically groups meshes into same output textures based on material usage (with option for overriding grouping).
  • Can bake tangent, object and world-space bent normal maps.
  • Automatically uses normal maps present in original materials for a higher quality result.
  • Can bake objects with or without occlusion from other scene objects.
  • Can convert normal maps from tangent to object space and vice-versa.

Requirements

BNAO runs on regular (as in, not compute) shaders and thus does not demand much from your GPU. However, it does require support for floating point and shadow map format render textures. To check if this is supported on your platform, use these functions:
SystemInfo.SupportsRenderTextureFormat(RenderTextureFormat.ARGBFloat);
SystemInfo.SupportsRenderTextureFormat(RenderTextureFormat.Shadowmap);

What are bent normals?

Bent normal maps store the direction of least occlusion (in other words, the direction in which the most ambient light is coming from) in a texture.
They can be used to occlude cubemap reflections based on the view direction in a much more realistic way than just multiplying with an ambient occlusion term. They can also be used to get an ambient color value which more closesly resembles a ray traced result.
For details on how to implement these effects in your own shader, see the file "Shader Implementation Example.txt".

Can I specify a max distance for the ambient occlusion?

No. The baker uses depth textures (similar to shadow mapping) to determine ray intersections, which makes it impossible to bias the result based on distance.

The normals convertor outputs weird results!

Make sure your texture settings for the input texture are correct. For TS normals just set "Texture Type" to "Normal Map". For OS normals, leave it at "Default" but uncheck "sRGB (Color Texture)".

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言