Circular scratch shader
First Claim
1. A computer-implemented method for generating a circular scratch highlight, the method comprising:
- accessing a plurality of texture planes, wherein each texture plane includes a plurality of copies of a texture oriented in the same direction;
accessing a combined texture by combining the plurality of texture planes at different angles;
applying the combined texture to a surface of an object;
calculating a specular gradient vector based on a light vector, a normal vector, and a view vector, wherein the specular gradient vector points in a gradient direction of a specular highlight; and
generating, via a processor, the circular scratch highlight by assigning, for each of a plurality of points on the surface of the object, a separate weight value corresponding to each texture plane in the combined texture based on how closely an orientation of the texture plane at the point corresponds to a scratch vector that is perpendicular to the specular gradient vector.
2 Assignments
0 Petitions
Accused Products
Abstract
A computer-implemented method for generating a circular scratch highlight. The method includes generating a plurality of texture planes, where each texture plane includes a plurality of copies of a scratch texture oriented in the same direction; generating a combined texture by combining the plurality of texture planes at different angles; applying the combined texture to a surface of an object; calculating a specular gradient vector based on a light vector and a reflectance vector, wherein the specular gradient vector points in a gradient direction of a specular highlight; and generating the circular scratch highlight by assigning, for each of a plurality of points on the surface of the object, a separate weight value corresponding to each texture plane in the combined texture based on how closely an orientation of the texture plane at the point corresponds to a scratch vector that is perpendicular to the specular gradient vector.
12 Citations
18 Claims
-
1. A computer-implemented method for generating a circular scratch highlight, the method comprising:
-
accessing a plurality of texture planes, wherein each texture plane includes a plurality of copies of a texture oriented in the same direction; accessing a combined texture by combining the plurality of texture planes at different angles; applying the combined texture to a surface of an object; calculating a specular gradient vector based on a light vector, a normal vector, and a view vector, wherein the specular gradient vector points in a gradient direction of a specular highlight; and generating, via a processor, the circular scratch highlight by assigning, for each of a plurality of points on the surface of the object, a separate weight value corresponding to each texture plane in the combined texture based on how closely an orientation of the texture plane at the point corresponds to a scratch vector that is perpendicular to the specular gradient vector. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A non-transitory computer-readable medium storing instructions that, when executed by a processor, cause a computer system to generate a circular scratch highlight, by performing the steps of:
-
accessing a plurality of texture planes, wherein each texture plane includes a plurality of copies of a texture oriented in the same direction; accessing a combined texture by combining the plurality of texture planes at different angles; applying the combined texture to a surface of an object; calculating a specular gradient vector based on a light vector, a normal vector, and a view vector, wherein the specular gradient vector points in a gradient direction of a specular highlight; and generating the circular scratch highlight by assigning, for each of a plurality of points on the surface of the object, a separate weight value corresponding to each texture plane in the combined texture based on how closely an orientation of the texture plane at the point corresponds to a scratch vector that is perpendicular to the specular gradient vector. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
Specification