Assimp
v4.1. (December 2018)
|
Defines all shading modes supported by the library. More...
Static Public Member Functions | |
static AiShadingMode | fromRawValue (int rawValue) |
Utility method for converting from c/c++ based integer enums to java enums. More... | |
Public Attributes | |
BLINN =(0x4) | |
Phong-Blinn-Shading. More... | |
COOK_TORRANCE =(0x8) | |
CookTorrance-Shading per pixel. More... | |
FLAT =(0x1) | |
Flat shading. More... | |
FRESNEL =(0xa) | |
Fresnel shading. More... | |
GOURAUD =(0x2) | |
Simple Gouraud shading. More... | |
MINNAERT =(0x7) | |
Minnaert-Shading per pixel. More... | |
NO_SHADING =(0x9) | |
No shading at all. More... | |
OREN_NAYAR =(0x6) | |
OrenNayar-Shading per pixel. More... | |
PHONG =(0x3) | |
Phong-Shading. More... | |
TOON =(0x5) | |
Toon-Shading per pixel. More... | |
Defines all shading modes supported by the library.
The list of shading modes has been taken from Blender. See Blender documentation for more information. The API does not distinguish between "specular" and "diffuse" shaders (thus the specular term for diffuse shading models like Oren-Nayar remains undefined).
Again, this value is just a hint. Assimp tries to select the shader whose most common implementation matches the original rendering results of the 3D modeller which wrote a particular model as closely as possible.
|
inlinestatic |
Utility method for converting from c/c++ based integer enums to java enums.
This method is intended to be used from JNI and my change based on implementation needs.
rawValue | an integer based enum value (as defined by assimp) |
jassimp.AiShadingMode.BLINN =(0x4) |
Phong-Blinn-Shading.
jassimp.AiShadingMode.COOK_TORRANCE =(0x8) |
CookTorrance-Shading per pixel.
Special shader for metallic surfaces.
jassimp.AiShadingMode.FLAT =(0x1) |
Flat shading.
Shading is done on per-face base, diffuse only. Also known as 'faceted shading'.
jassimp.AiShadingMode.FRESNEL =(0xa) |
Fresnel shading.
jassimp.AiShadingMode.GOURAUD =(0x2) |
Simple Gouraud shading.
jassimp.AiShadingMode.MINNAERT =(0x7) |
Minnaert-Shading per pixel.
Extension to standard Lambertian shading, taking the "darkness" of the material into account
jassimp.AiShadingMode.NO_SHADING =(0x9) |
No shading at all.
Constant light influence of 1.0.
jassimp.AiShadingMode.OREN_NAYAR =(0x6) |
OrenNayar-Shading per pixel.
Extension to standard Lambertian shading, taking the roughness of the material into account
jassimp.AiShadingMode.PHONG =(0x3) |
Phong-Shading.
jassimp.AiShadingMode.TOON =(0x5) |
Toon-Shading per pixel.
Also known as 'comic' shader.