Bump mapping shader

broken image

We would like to use this texture toĬompute shading normals so that the surface appears as if it actually hadīeen offset by the displacement function, without modifying its geometry. Is the offset returned by the displacement texture at normal p Subscript andīold n left-parenthesis normal p Subscript Baseline right-parenthesis is the surface normal at normal p Subscript It, defined by normal p prime equals normal p Subscript Baseline plus d left-parenthesis normal p Subscript Baseline right-parenthesis bold n left-parenthesis normal p Subscript Baseline right-parenthesis, where d left-parenthesis normal p Subscript Baseline right-parenthesis Surface: each point normal p Subscript has a displaced point normal p prime associated with All of the Materials defined in the previous section take an optionalįloating-point texture that defines a displacement at each point on the

broken image