Draft.
Written against the glTF 2.0 spec.
KHR_materials_pbrSpecularGlossiness
.KHR_materials_unlit
.KHR_materials_volume
.This extension adds support for setting bumpTexture
and bumpScale
.
bumpTexture
sets the bump map from the R
channel. The black and white values map to the perceived depth in relation to the lights. Bump doesn’t actually affect the geometry of the object, only the lighting.
bumpScale
defines how much the bump map affects the material. Typical ranges are 0-1. Bump map is ignored if bumpScale == 0
Sample values:
{
"materials": [
{
"extensions": {
"WEBGI_materials_bumpmap": {
"bumpScale": 0.6,
"bumpTexture": { "index": 1 },
}
}
}
]
}
Basic Implementation similar to three.js: bumpMap in MeshPhysicalMaterial
Alternative implementation with Parallax Bump Mapping.
TODO: add technical details.