Home
last modified time | relevance | path

Searched refs:roughness (Results 1 - 8 of 8) sorted by relevance

/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/shaders/common/
H A D3d_dm_brdf_common.h38 float EnvSpecularAo(float ao, float NoV, float roughness) in EnvSpecularAo() argument
40 return clamp(pow(NoV + ao, exp2(-16.0 * roughness - 1.0)) - 1.0 + ao, 0.0, 1.0); in EnvSpecularAo()
49 float dAshikhmin(float roughness, float NoH) in dAshikhmin() argument
51 const float r2 = roughness * roughness; in dAshikhmin()
64 float dCharlie(float roughness, float NoH) in dCharlie() argument
66 const float invR = 1.0 / roughness; in dCharlie()
H A D3d_dm_lighting_common.h35 float roughness; member
76 float roughness; member
93 void GetFinalCorrectedRoughness(CORE_RELAXEDP in vec3 polygonNormal, CORE_RELAXEDP inout float roughness) in GetFinalCorrectedRoughness() argument
96 // reduce shading aliasing by increasing roughness based on the curvature of the geometry in GetFinalCorrectedRoughness()
101 roughness = max(roughness, geometricRoughness); in GetFinalCorrectedRoughness()
103 roughness = clamp(roughness, CORE_BRDF_MIN_ROUGHNESS, 1.0); in GetFinalCorrectedRoughness()
148 CORE_RELAXEDP float roughness = ibd.roughness; in GetFinalSampledBrdfGeometricCorrection() local
158 const CORE_RELAXEDP float roughness = ibd.roughness; GetFinalSampledBrdfGeometricCorrection() local
[all...]
H A D3d_dm_indirect_lighting_common.h60 vec3 EnvBRDFApprox(vec3 f0, float roughness, float NoV) in EnvBRDFApprox() argument
64 vec4 r = roughness * c0 + c1; in EnvBRDFApprox()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2_data_structures.h421 // The roughness of the material.
425 // this value is multiplied with the roughness texel values.
429 // The metallic-roughness texture.
431 // The roughness values are sampled from the G channel.
433 // they are ignored for metallic-roughness calculations.
496 // The clearcoat layer roughness.
497 float roughness = 0.0f; member
498 // The clearcoat layer roughness texture.
545 // The sheen roughness.
546 float roughness member
[all...]
H A Dgltf2_exporter.cpp1008 exportMaterial.clearcoat.roughness = in ExportGltfMaterialClearcoat()
1597 if (clearcoat.roughness != 0.f) { in ExportClearcoat()
1598 jsonClearcoat["clearcoatRoughnessFactor"] = clearcoat.roughness; in ExportClearcoat()
1646 if (sheen.roughness != 0.f) { in ExportSheen()
1647 jsonSheen["sheenRoughnessFactor"] = sheen.roughness; in ExportSheen()
H A Dgltf2_loader.cpp1059 if (!ParseOptionalNumber<float>(loadResult, material.clearcoat.roughness, materialJson, "roughness",
1060 material.clearcoat.roughness)) {
1093 if (!ParseOptionalNumber(loadResult, clearcoat.roughness, *clearcoatJson, "clearcoatRoughnessFactor", 0.f)) {
1207 if (!ParseOptionalNumber(loadResult, sheen.roughness, *sheenJson, "sheenRoughnessFactor", 0.f)) {
H A Dgltf2_importer.cpp1539 // Metallic-roughness. in FillMetallicRoughness()
1581 desc.textures[MaterialComponent::TextureIndex::CLEARCOAT_ROUGHNESS].factor.y = gltfMaterial.clearcoat.roughness; in FillClearcoat()
1611 CORE_LOG_W("Sheen roughness mapping not supported by gltf2 importer"); in FillSheen()
1614 desc.textures[MaterialComponent::TextureIndex::SHEEN].factor.w = gltfMaterial.sheen.roughness; in FillSheen()
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Dmaterial_impl.cpp550 if (auto roughness = meta->GetPropertyByName(SCENE_NS::IMaterial::MAPPED_INPUTS_ROUGHNESS)) { in UpdateInputProperties()
552 meta->RemoveProperty(roughness); in UpdateInputProperties()
555 auto roughness = META_NS::ConstructProperty<float>(SCENE_NS::IMaterial::MAPPED_INPUTS_ROUGHNESS); in UpdateInputProperties() local
556 meta->AddProperty(roughness); in UpdateInputProperties()
748 if (auto roughness = meta->GetPropertyByName(SCENE_NS::IMaterial::MAPPED_INPUTS_ROUGHNESS)) { in BindInputProperties()
749 BindChanges<BASE_NS::Math::Vec4, float>(GET_HOLDER(meta), META_NS::Property<float>(roughness), in BindInputProperties()

Completed in 21 milliseconds