src : String -> AFrame.Properties.Property
Image or video texture map. Can either be a selector to an <img>
or <video>
, or an inline URL.
Default : None
width : Basics.Int -> AFrame.Properties.Property
Width of video (in pixels), if defining a video texture.
Default : 640
height : Basics.Int -> AFrame.Properties.Property
Height of video (in pixels), if defining a video texture.
Default : 360
color : Color -> AFrame.Properties.Property
Base diffuse color.
Default : #fff
fog : Basics.Bool -> AFrame.Properties.Property
Whether or not material is affected by fog.
Default : true
wireframe : Basics.Bool -> AFrame.Properties.Property
Whether to render just the geometry edges.
Default : false
wireframeLinewidth : Basics.Int -> AFrame.Properties.Property
Width in px of the rendered line.
Default : 2
NB: It is width
all-lowercase in docs and sources so it is intentionally left the same way
repeat : Basics.Float -> Basics.Float -> AFrame.Properties.Property
How many times a texture (defined by src) repeats in the X and Y direction.
Default : {x: 1, y: 1}
emissive : Color -> AFrame.Properties.Property
The color of the emissive lighting component. Used to make objects produce light even without other lighting in the scene.
Default : #000
emissiveIntensity : Basics.Float -> AFrame.Properties.Property
Intensity of the emissive lighting component.
Default : 1
metalness : Basics.Float -> AFrame.Properties.Property
How metallic the material is from 0 to 1.
Default : 0
roughness : Basics.Float -> AFrame.Properties.Property
How rough the material is from 0 to 1. A rougher material will scatter reflected light in more directions than a smooth material.
Default : 0.5
ambientOcclusionMap : String -> AFrame.Properties.Property
Ambient occlusion map. Used to add shadows to the mesh. Can either be a selector to an <img>
, or an inline URL. Requires 2nd set of UVs (see below).
Default : None
ambientOcclusionMapIntensity : Basics.Float -> AFrame.Properties.Property
The intensity of the ambient occlusion map, a number between 0 and 1.
Default : 1
ambientOcclusionTextureRepeat : Basics.Float -> Basics.Float -> AFrame.Properties.Property
How many times the ambient occlusion texture repeats in the X and Y direction.
Default : {x: 1, y: 1}
ambientOcclusionTextureOffset : Basics.Float -> Basics.Float -> AFrame.Properties.Property
How the ambient occlusion texture is offset in the x y direction.
Default : {x: 0, y: 0}
displacementMap : String -> AFrame.Properties.Property
Displacement map. Used to distort a mesh. Can either be a selector to an <img>
, or an inline URL.
Default : None
displacementScale : Basics.Float -> AFrame.Properties.Property
The intensity of the displacement map effect
Default : 1
displacementBias : Basics.Float -> AFrame.Properties.Property
The zero point of the displacement map.
Default : 0.5
displacementTextureRepeat : Basics.Float -> Basics.Float -> AFrame.Properties.Property
How many times the displacement texture repeats in the X and Y direction.
Default : {x: 1, y: 1}
displacementTextureOffset : Basics.Float -> Basics.Float -> AFrame.Properties.Property
How the displacement texture is offset in the x y direction.
Default : {x: 0, y: 0}
envMap : String -> AFrame.Properties.Property
Environment cubemap texture for reflections. Can be a selector to or a comma-separated list of URLs.
Default : None
sphericalEnvMap : String -> AFrame.Properties.Property
Environment spherical texture for reflections. Can either be a selector to an , or an inline URL.
Default : None
normalMap : String -> AFrame.Properties.Property
Normal map. Used to add the illusion of complex detail. Can either be a selector to an , or an inline URL.
Default : None
normalScale : Basics.Float -> Basics.Float -> AFrame.Properties.Property
Scale of the effect of the normal map in the X and Y directions.
Default : {x: 1, y: 1}
normalTextureRepeat : Basics.Float -> Basics.Float -> AFrame.Properties.Property
How many times the normal texture repeats in the X and Y direction.
Default : {x: 1, y: 1}
normalTextureOffset : Basics.Float -> Basics.Float -> AFrame.Properties.Property
How the normal texture is offset in the x y direction.
Default : {x: 0, y: 0}