OGRE
2.2.4
Object-Oriented Graphics Rendering Engine
|
Enumerations | |
enum | PbsBrdf { FLAG_UNCORRELATED = 0x80000000, FLAG_SPERATE_DIFFUSE_FRESNEL = 0x40000000, FLAG_LEGACY_MATH = 0x20000000, FLAG_FULL_LEGACY = 0x08000000, BRDF_MASK = 0x00000FFF, Default = 0x00000000, CookTorrance = 0x00000001, BlinnPhong = 0x00000002, DefaultUncorrelated = Default|FLAG_UNCORRELATED, DefaultSeparateDiffuseFresnel = Default|FLAG_SPERATE_DIFFUSE_FRESNEL, CookTorranceSeparateDiffuseFresnel = CookTorrance|FLAG_SPERATE_DIFFUSE_FRESNEL, BlinnPhongSeparateDiffuseFresnel = BlinnPhong|FLAG_SPERATE_DIFFUSE_FRESNEL, BlinnPhongLegacyMath = BlinnPhong|FLAG_LEGACY_MATH, BlinnPhongFullLegacy = BlinnPhongLegacyMath|FLAG_FULL_LEGACY } |
Enumerator | |
---|---|
FLAG_UNCORRELATED | |
FLAG_SPERATE_DIFFUSE_FRESNEL | |
FLAG_LEGACY_MATH | |
FLAG_FULL_LEGACY | |
BRDF_MASK | |
Default | Most physically accurate BRDF we have. Good for representing the majority of materials. Uses:
|
CookTorrance | Implements Cook-Torrance BRDF. Uses:
Ideal for silk (use high roughness values), synthetic fabric |
BlinnPhong | Implements Normalized Blinn Phong using a normalization factor of (n + 8) / (8 * pi) The main reason to use this BRDF is performance. It's cheaper, while still looking somewhat similar to Default. If you still need more performance, see BlinnPhongLegacy |
DefaultUncorrelated | Same as Default, but the geometry term is not height-correlated which most notably causes edges to be dimmer and is less correct. Unity (Marmoset too?) use an uncorrelated term, so you may want to use this BRDF to get the closest look for a nice exchangeable pipeline workflow. |
DefaultSeparateDiffuseFresnel | Same as Default but the fresnel of the diffuse is calculated differently. Normally the diffuse component would be multiplied against the inverse of the specular's fresnel to maintain energy conservation. This has the nice side effect that to achieve a perfect mirror effect, you just need to raise the fresnel term to 1; which is very intuitive to artists (specially if using coloured fresnel) When using this BRDF, the diffuse fresnel will be calculated differently, causing the diffuse component to still affect the colour even when the fresnel = 1 (although subtly). To achieve a perfect mirror you will have to set the fresnel to 1 and the diffuse colour to black; which can be unintuitive for artists. This BRDF is very useful for representing surfaces with complex refractions and reflections like glass, transparent plastics, fur, and surface with refractions and multiple rescattering that cannot be represented well with the default BRDF. |
CookTorranceSeparateDiffuseFresnel |
Ideal for shiny objects like glass toy marbles, some types of rubber. silk, synthetic fabric. |
BlinnPhongSeparateDiffuseFresnel | Like DefaultSeparateDiffuseFresnel, but uses BlinnPhong as base. |
BlinnPhongLegacyMath | Implements traditional / the original non-PBR blinn phong:
|
BlinnPhongFullLegacy | Implements traditional / the original non-PBR blinn phong:
Important: If switching from Default to BlinnPhongFullLegacy, you'll probably see that your scene is too bright. This is probably because Default divides diffuse by PI and you usually set your lights' power to a multiple of PI to compensate. If your scene is too bright, kist divide your lights by PI. BlinnPhongLegacyMath performs that conversion for you automatically at material level instead of doing it at light level. |