Material¶
This page contains classes defined in hakowan.material
module.
Material
dataclass
¶
Bases: Channel
Material base class.
Attributes:
Name | Type | Description |
---|---|---|
two_sided |
bool
|
Whether to render both sides of the surface (default: False). |
Source code in hakowan/grammar/channel/material/material.py
Diffuse
dataclass
¶
Bases: Material
Diffuse material.
Attributes:
Name | Type | Description |
---|---|---|
reflectance |
TextureLike
|
Diffuse reflectance (i.e. base color) texture (default: 0.5). |
Source code in hakowan/grammar/channel/material/material.py
Conductor
dataclass
¶
Bases: Material
Conductor material.
Attributes:
Name | Type | Description |
---|---|---|
material |
str
|
Conductor material name based on Mitsuba preset. |
Source code in hakowan/grammar/channel/material/material.py
RoughConductor
dataclass
¶
Plastic
dataclass
¶
Bases: Material
Plastic material.
Attributes:
Name | Type | Description |
---|---|---|
diffuse_reflectance |
TextureLike
|
Diffuse reflectance (i.e. base color) texture (default: 0.5). |
specular_reflectance |
Texture | float
|
Specular reflectance texture (default: 1.0). |
Source code in hakowan/grammar/channel/material/material.py
RoughPlastic
dataclass
¶
Bases: Plastic
Rough plastic material.
Attributes:
Name | Type | Description |
---|---|---|
distribution |
str
|
Microfacet distribution (default: "beckmann"). |
alpha |
float
|
Roughness value (default: 0.1). |
Source code in hakowan/grammar/channel/material/material.py
Principled
dataclass
¶
Bases: Material
Principled material.
Attributes:
Name | Type | Description |
---|---|---|
color |
TextureLike
|
Base color texture (default: 0.5). |
roughness |
Texture | float
|
Roughness texture (default: 0.5). |
metallic |
Texture | float
|
Metallic texture (default: 0.0). |
Source code in hakowan/grammar/channel/material/material.py
ThinPrincipled
dataclass
¶
Bases: Principled
Thin Principled material.
Source code in hakowan/grammar/channel/material/material.py
Dielectric
dataclass
¶
Bases: Material
Dielectric material.
Attributes:
Name | Type | Description |
---|---|---|
int_ior |
str | float
|
Interior index of refraction (default: "bk7"). |
ext_ior |
str | float
|
Exterior index of refraction (default: "air"). |
medium |
Medium | None
|
Medium (default: None). |
specular_reflectance |
float
|
Specular reflectance texture (default: 1.0). |
Source code in hakowan/grammar/channel/material/material.py
ThinDielectric
dataclass
¶
Bases: Dielectric
Thin dielectric material.
Source code in hakowan/grammar/channel/material/material.py
RoughDielectric
dataclass
¶
Bases: Dielectric
Rough dielectric material.
Attributes:
Name | Type | Description |
---|---|---|
distribution |
str
|
Microfacet distribution (default: "beckmann"). |
alpha |
Texture | float
|
Roughness value (default: 0.1). |
Source code in hakowan/grammar/channel/material/material.py
Hair
dataclass
¶
Bases: Material
Hair material.
Attributes:
Name | Type | Description |
---|---|---|
eumelanin |
float
|
Eumelanin (dark/brown pigment) concentration (default: 1.3). |
pheomelanin |
float
|
Pheomelanin (reddish-yellow pigment) concentration (default: 0.2). |