tangram icon indicating copy to clipboard operation
tangram copied to clipboard

Materials: normal map `amount` is not applied

Open bcamper opened this issue 9 years ago • 1 comments
trafficstars

The amount parameter for material normal maps is parsed and set as a uniform (normalAmount), but it is not actually applied in the shader (material.glsl).

We can either fix this (pretty easily), or remove the functionality, since it can also be easily accomplished through a normal shader block. If the latter, we need to explain in the docs that amount is a parameter that applies to all texture types except normal maps (which is also odd).

bcamper avatar Apr 22 '16 17:04 bcamper

@blair1618 This also appears to be the case in ES, though for good reason since the material.glsl is (near?) identical to the JS version.

bcamper avatar Apr 22 '16 17:04 bcamper