glTF Occlusion Texture Strength: Inspect the Red Channel Before Reviewing Model Shading
Apply the glTF occlusion strength expression to invented linear red samples, preserving the distinction between indirect-lighting occlusion, other channels and final model appearance.

Identify which shading input is being discussed
A drone-derived model can appear darker in some regions even when its geometry is unchanged. Before editing textures or describing the difference as a defect, identify the material input being reviewed. A glTF occlusion texture affects indirect lighting and has a defined channel and strength expression. This tutorial evaluates that expression on invented samples without opening an image or rendering a model. It does not diagnose a customer delivery or establish a NiVO export feature. The goal is a small material observation that keeps the numerical input, the selected channel and the limited meaning of the result explicit.
Preserve the original package and record the asset revision, relevant material and texture references, and the viewer involved in the observation. A screenshot alone does not identify which channel or material path produced a dark area. The function below starts after a linear occlusion texture sample has been obtained elsewhere. It does not decode an image, resolve a texture reference or perform filtering. Keep those dependencies in the surrounding review record. Otherwise, a correct scalar calculation could be applied to a sample taken from the wrong image, coordinate set or stage of the rendering pipeline.
Read the channel and strength definitions together
Khronos specifies occlusion values in the red channel, with the other texture channels ignored for occlusion. The values are sampled linearly. Higher values represent less occlusion of indirect lighting; direct lighting is not affected by this texture. The strength parameter ranges from zero to one and defaults to one. The expression is one plus strength multiplied by the difference between the sampled occlusion value and one. Consequently, strength zero yields one, while strength one retains the sample. This is a reduction of the occlusion effect, not a direct-lighting shadow or transparency control.
The direction of that blend is worth making visible. Multiplying the sample by strength alone would give zero at strength zero, which is a different expression. In the specified formula, reducing strength moves the occlusion value toward the unoccluded endpoint of one. The tutorial uses a red sample of one quarter and an exact half strength so the intermediate result is easy to verify. Those numbers are constructed. They do not measure surface darkness, image brightness or an actual illumination level, and the result should not be relabelled as a final pixel color.

Product context only; this photograph does not depict the constructed examples in this article.
Evaluate the scalar expression on a constructed sample
This Python helper accepts one already sampled RGB or RGBA sequence and an optional strength. Its local profile requires finite normalized components, checks the strength range and preserves the original tuple. Only the first component enters the occlusion calculation. The other channels remain in the record so a reviewer can see what was supplied without treating them as occlusion inputs. The helper does not validate a complete material or image. Its range checks are a boundary for this demonstration, while the sampling, transfer interpretation and texture selection remain explicit preconditions established outside the function.
import math
def inspect_occlusion(sample, strength=1.0):
def normalized(value):
return type(value) in (int, float) and math.isfinite(value) and 0 <= value <= 1
if not isinstance(sample, (list, tuple)) or len(sample) not in (3, 4):
raise ValueError("expected a sampled RGB or RGBA sequence")
if not all(normalized(value) for value in sample) or not normalized(strength):
raise ValueError("expected finite normalized teaching inputs")
red = float(sample[0])
amount = float(strength)
return {"raw_sample": tuple(sample), "red_occlusion": red,
"strength": amount, "occlusion_value": 1.0 + amount * (red - 1.0)}
sample = [0.25, 0.9, 0.1, 0.8]
for strength in (0, 0.5, 1):
print(inspect_occlusion(sample, strength))Compare the endpoints and ignored channels
For the constructed red sample of 0.25, the three printed occlusion values are 1.0, 0.625 and 0.25. The middle calculation starts with one and adds half of negative three quarters. That arithmetic makes the blend direction clear without any image editing. Change the green, blue and alpha components while keeping red and strength fixed; the calculated occlusion value should remain unchanged. This comparison helps isolate channel selection. It does not imply that those other channels have no purpose elsewhere in the asset, especially if an image is shared by different material inputs.
Now try a red sample of one. Every accepted strength produces one because there is no difference from the unoccluded endpoint to scale. A red sample of zero produces one minus the strength. Those boundary cases can expose a reversed interpretation or a mistaken direct multiplication. Retain the raw sample and strength beside the result when preparing a review note. A lone scalar value loses the information needed to determine whether it came from a darker source sample, a different strength, or a channel-selection mistake made before this small calculation.
Separate a correct factor from a correct rendered image
The returned value is an occlusion input for indirect lighting, not a promise that the model will display a particular shade. Lighting, base color, other material properties and the rendering context still contribute to appearance. The helper does not evaluate those stages. Do not use it to assert that direct shadows became lighter, that a texture is geographically registered or that the geometry has a particular quality. A controlled viewer investigation should keep the asset and scene conditions consistent while checking one question at a time, rather than repeatedly changing strength until a screenshot looks plausible.
A complete review must also establish that the selected image really is the material’s occlusion texture and that the sample came from the intended coordinates. This tutorial performs neither task. If an extension changes relevant behavior, read its actual specification before adapting the core-property example. If the material has no occlusion texture, this helper does not invent one from another image. Preserve that absence in the asset review. A bounded scalar comparison is useful when its preconditions are known; applying it to arbitrary RGB bytes would skip the very relationships needed to interpret its output.
Record the material observation without editing the source
A reproducible finding records the model revision, material and texture references, coordinate set, sampling stage, linear red value, strength and calculated occlusion value. State which parts were obtained from the asset and which were constructed for testing. Include the expression so another reviewer can repeat the arithmetic independently. Keep any proposed asset change in a separate working copy and compare it against the original under controlled conditions. The numerical result can support a precise material discussion, but it does not replace complete image, geometry, rendering or geospatial acceptance checks required by the real delivery.
The owner-supplied NiVO photograph provides aircraft context only. It is not a rendered result from the invented sample or evidence of a particular material workflow. The useful habit is to inspect the red channel, keep strength explicit, apply the specified blend toward one and stop before claiming a final color. That sequence gives a drone model handoff team a concrete observation to discuss. It also preserves the source package and leaves unrelated lighting, texture, geometry and project-quality questions available for the separate evidence and review decisions that they require.



