({{, (RefLink[TextureCoordinateFunction, paclet:ref/TextureCoordinateFunction]) 
is an option to (RefLink[Plot3D, paclet:ref/Plot3D]) and similar functions that specifies a function that computes texture coordinates.}})

OpenersNotesSection(Spacer1)Details

With (RefLink[TextureCoordinateFunction, paclet:ref/TextureCoordinateFunction])->func, the arguments supplied to the function are as follows:

With the usual default setting (RefLink[TextureCoordinateScaling, paclet:ref/TextureCoordinateScaling])->(RefLink[True, paclet:ref/True]), all arguments supplied to func are scaled to lie in the range 0 to 1.

With (RefLink[TextureCoordinateScaling, paclet:ref/TextureCoordinateScaling])->(RefLink[False, paclet:ref/False]), original unscaled values are used.

OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (4)

Texture coordinates align with parameter values for parametric surfaces and regions:

ParametricPlot[{r t Cos[t],r t Sin[t]},{t,0,2Pi},{r,0,1},PlotRange->All,Mesh->False,Axes->False,PlotStyle->{Opacity[1],Texture[ExampleData[{"ColorTexture","Roof"}]]}]

Align the texture coordinates to the x and y coordinates:

ParametricPlot[{r t Cos[t],r t Sin[t]},{t,0,2Pi},{r,0,1},PlotRange->All,Mesh->False,Axes->False,PlotStyle->{Opacity[1],Texture[ExampleData[{"ColorTexture","Roof"}]]},TextureCoordinateFunction->({#1,#2}&)]

Texture coordinates align with the x and y coordinates for non-parametric surfaces and regions:

ContourPlot3D[Norm[{x,y,z},1]==1,{x,-1,1},{y,-1,1},{z,-1,1},Mesh->None,Lighting->"Neutral",ContourStyle->Texture[ExampleData[{"ColorTexture","Metal2"}]]]

Align the texture coordinates along level sets for x-y and x+y:

ContourPlot3D[Norm[{x,y,z},1]==1,{x,-1,1},{y,-1,1},{z,-1,1},Mesh->None,Lighting->"Neutral",ContourStyle->Texture[ExampleData[{"ColorTexture","Metal2"}]],
TextureCoordinateFunction->({#1-#2,#1+#2}&)]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Texture, paclet:ref/Texture])  ▪  (RefLink[TextureCoordinateScaling, paclet:ref/TextureCoordinateScaling])  ▪  (RefLink[VertexTextureCoordinates, paclet:ref/VertexTextureCoordinates])  ▪  (RefLink[ColorFunction, paclet:ref/ColorFunction])  ▪  (RefLink[PlotStyle, paclet:ref/PlotStyle])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Plotting Options, paclet:guide/PlottingOptions])}})}})