Texture Class
The Texture class is used to render images to the scene. Shadows can be cast off a Texture, they are cast based on the vertices
Constructor
Texture
(
-
[parameters]
Parameters:
-
[parameters]
Object optionalParameters is an object that contains the PointLights properties
-
[x=0]
Number optionalX position
-
[y=0]
Number optionalY position
-
[rotation=0]
Number optionalRotation
-
[vertices=LE.Vertices.square(50, 50)]
Object optionalVertices
-
textureURL
StringTexture URL
-
Item Index
Properties
Properties
centerPoint
Object
private
rotation
Number
Default: 0
textureURL
String
private
vertices
Object
private
Default: LE.Vertices.square(50, 50)
x
Number
Default: 0
y
Number
Default: 0