texture

Synopsis

texture(string texturePath)

Parameters

This function uses the file specified in the texturePath to texture the current shape (colormap channel).

Note: The "texture" command is the simplified version of "set(material.colormap,..).

Note: The "texture" command does not create texture coordinates!

Related

Examples

brickMap = "assets/bricks.jpg"
randBuildingHeight = rand(3,20)

Lot -->
s('.75,'1,'.75)
center(xz)
extrude(world.up, randBuildingHeight)
comp(f){side: Facade | top: set(material.color.a, .3) Roof.}

Facade -->
	# color, uv set 0
	setupProjection(0, scope.xy, 5, 5)
	texture(brickMap)
	// = set(material.colormap,brickMap)
	projectUV(0)

Copyright ©2008-2016 Esri R&D Center Zurich. All rights reserved.