Assimp  v3.1.1 (June 2014)
jassimp.AiShadingMode Enum Reference

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...
 

Detailed Description

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.

Member Function Documentation

§ fromRawValue()

static AiShadingMode jassimp.AiShadingMode.fromRawValue ( int  rawValue)
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.

Parameters
rawValuean integer based enum value (as defined by assimp)
Returns
the enum value corresponding to rawValue

Member Data Documentation

§ BLINN

jassimp.AiShadingMode.BLINN =(0x4)

Phong-Blinn-Shading.

§ COOK_TORRANCE

jassimp.AiShadingMode.COOK_TORRANCE =(0x8)

CookTorrance-Shading per pixel.

Special shader for metallic surfaces.

§ FLAT

jassimp.AiShadingMode.FLAT =(0x1)

Flat shading.

Shading is done on per-face base, diffuse only. Also known as 'faceted shading'.

§ FRESNEL

jassimp.AiShadingMode.FRESNEL =(0xa)

Fresnel shading.

§ GOURAUD

jassimp.AiShadingMode.GOURAUD =(0x2)

Simple Gouraud shading.

§ MINNAERT

jassimp.AiShadingMode.MINNAERT =(0x7)

Minnaert-Shading per pixel.

Extension to standard Lambertian shading, taking the "darkness" of the material into account

§ NO_SHADING

jassimp.AiShadingMode.NO_SHADING =(0x9)

No shading at all.

Constant light influence of 1.0.

§ OREN_NAYAR

jassimp.AiShadingMode.OREN_NAYAR =(0x6)

OrenNayar-Shading per pixel.

Extension to standard Lambertian shading, taking the roughness of the material into account

§ PHONG

jassimp.AiShadingMode.PHONG =(0x3)

Phong-Shading.

§ TOON

jassimp.AiShadingMode.TOON =(0x5)

Toon-Shading per pixel.

Also known as 'comic' shader.


The documentation for this enum was generated from the following file: