-----------------------------------------------------------------------------
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DerivingVia #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
-----------------------------------------------------------------------------
module THREE.SpotLight
  ( -- * Types
    SpotLight (..)
    -- * Constructors
  , THREE.SpotLight.new
    -- * Read-only Properties
  , isSpotLight
    -- * Properties
  , angle
  , decay
  , distance
  , penumbra
  , power
  , target
    -- * Optional properties
  , THREE.SpotLight.map
    -- * Methods
    -- * Helper functions
  ) where
-----------------------------------------------------------------------------
import           Miso
-----------------------------------------------------------------------------
import           THREE.EventDispatcher
import           THREE.Internal as THREE
import           THREE.Light
import           THREE.Object3D
import           THREE.Texture
-----------------------------------------------------------------------------
-- | https://threejs.org/docs/#api/en/lights/SpotLight
newtype SpotLight
  = SpotLight
  { SpotLight -> JSVal
unSpotLight :: JSVal
  } deriving newtype (SpotLight -> IO [JSVal]
(SpotLight -> IO [JSVal]) -> ToArgs SpotLight
forall args. (args -> IO [JSVal]) -> ToArgs args
$ctoArgs :: SpotLight -> IO [JSVal]
toArgs :: SpotLight -> IO [JSVal]
ToArgs, SpotLight -> IO Object
(SpotLight -> IO Object) -> ToObject SpotLight
forall a. (a -> IO Object) -> ToObject a
$ctoObject :: SpotLight -> IO Object
toObject :: SpotLight -> IO Object
ToObject, SpotLight -> IO JSVal
(SpotLight -> IO JSVal) -> ToJSVal SpotLight
forall a. (a -> IO JSVal) -> ToJSVal a
$ctoJSVal :: SpotLight -> IO JSVal
toJSVal :: SpotLight -> IO JSVal
ToJSVal)
    deriving anyclass (Property SpotLight Double
Property SpotLight Color
ReadOnly SpotLight Bool
Object3D SpotLight
Method SpotLight () ()
Object3D SpotLight =>
ReadOnly SpotLight Bool
-> Property SpotLight Color
-> Property SpotLight Double
-> Method SpotLight () ()
-> Light SpotLight
forall light.
Object3D light =>
ReadOnly light Bool
-> Property light Color
-> Property light Double
-> Method light () ()
-> Light light
$cisLight :: ReadOnly SpotLight Bool
isLight :: ReadOnly SpotLight Bool
$ccolor :: Property SpotLight Color
color :: Property SpotLight Color
$cintensity :: Property SpotLight Double
intensity :: Property SpotLight Double
$cdispose :: Method SpotLight () ()
dispose :: Method SpotLight () ()
Light, Property SpotLight Bool
Property SpotLight Double
Property SpotLight MisoString
Property SpotLight Function
Property SpotLight Object
Property SpotLight Euler
Property SpotLight AnimationClip
Property SpotLight Layers
Property SpotLight Matrix3
Property SpotLight Matrix4
Property SpotLight Quaternion
Property SpotLight Vector3
ReadOnly SpotLight Bool
ReadOnly SpotLight Int
EventDispatcher SpotLight
Method SpotLight Bool ()
Method SpotLight () ()
Method SpotLight (Bool, Bool) ()
Method SpotLight (Raycaster, JSVal) ()
Method SpotLight (Vector3, Double) ()
Method SpotLight Function ()
Method SpotLight Object Object
FromJSVal SpotLight => Method SpotLight Double SpotLight
FromJSVal SpotLight => Method SpotLight () SpotLight
FromJSVal SpotLight => Method SpotLight (Vector3, Double) SpotLight
FromJSVal SpotLight => Method SpotLight Quaternion SpotLight
EventDispatcher SpotLight =>
Property SpotLight AnimationClip
-> Property SpotLight Bool
-> (forall material.
    (Material material, FromJSVal material) =>
    Property SpotLight material)
-> (forall material.
    (Material material, FromJSVal material) =>
    Property SpotLight material)
-> Property SpotLight Bool
-> ReadOnly SpotLight Int
-> ReadOnly SpotLight Bool
-> Property SpotLight Layers
-> Property SpotLight Matrix4
-> Property SpotLight Bool
-> Property SpotLight Matrix4
-> Property SpotLight Bool
-> Property SpotLight Bool
-> Property SpotLight Matrix4
-> Property SpotLight MisoString
-> Property SpotLight Matrix3
-> Property SpotLight Function
-> Property SpotLight Function
-> Property SpotLight Function
-> Property SpotLight Function
-> (forall return.
    (Object3D return, FromJSVal return) =>
    Property SpotLight return)
-> Property SpotLight Vector3
-> Property SpotLight Quaternion
-> Property SpotLight Bool
-> Property SpotLight Double
-> Property SpotLight Euler
-> Property SpotLight Vector3
-> Property SpotLight Vector3
-> Property SpotLight Object
-> Property SpotLight MisoString
-> Property SpotLight Bool
-> Property SpotLight Vector3
-> Property SpotLight Bool
-> Property SpotLight Bool
-> (forall arg.
    (ToArgs arg, FromJSVal SpotLight, Object3D arg) =>
    Method SpotLight arg SpotLight)
-> Method SpotLight Matrix4 ()
-> (FromJSVal SpotLight => Method SpotLight Quaternion SpotLight)
-> (forall arg.
    (FromJSVal SpotLight, ToArgs arg) =>
    Method SpotLight arg SpotLight)
-> (forall arg.
    (ToArgs arg, FromJSVal SpotLight) =>
    Method SpotLight arg SpotLight)
-> (forall t.
    (FromJSVal SpotLight, Object3DCloneParams t, ToArgs t) =>
    Method SpotLight t SpotLight)
-> (forall t.
    (ToArgs SpotLight, FromJSVal SpotLight,
     Object3DCopyParams SpotLight t, ToArgs t) =>
    Method SpotLight t SpotLight)
-> Method SpotLight Vector3 Vector3
-> Method SpotLight Quaternion Quaternion
-> Method SpotLight Vector3 Vector3
-> Method SpotLight Vector3 Vector3
-> Method SpotLight Vector3 Vector3
-> (forall arg.
    (ToArgs arg, Triplet arg) =>
    Method SpotLight arg ())
-> Method SpotLight (Raycaster, JSVal) ()
-> (forall arg.
    (ToArgs arg, Object3D arg, FromJSVal SpotLight) =>
    Method SpotLight arg SpotLight)
-> (FromJSVal SpotLight => Method SpotLight () SpotLight)
-> (FromJSVal SpotLight =>
    Method SpotLight (Vector3, Double) SpotLight)
-> (FromJSVal SpotLight =>
    Method SpotLight (Vector3, Double) SpotLight)
-> (FromJSVal SpotLight => Method SpotLight Double SpotLight)
-> (FromJSVal SpotLight => Method SpotLight Double SpotLight)
-> (FromJSVal SpotLight => Method SpotLight Double SpotLight)
-> Method SpotLight (Vector3, Double) ()
-> Method SpotLight Euler ()
-> Method SpotLight Matrix4 ()
-> Method SpotLight Quaternion ()
-> Method SpotLight Object Object
-> (FromJSVal SpotLight =>
    Method SpotLight (Vector3, Double) SpotLight)
-> (FromJSVal SpotLight => Method SpotLight Double SpotLight)
-> (FromJSVal SpotLight => Method SpotLight Double SpotLight)
-> (FromJSVal SpotLight => Method SpotLight Double SpotLight)
-> Method SpotLight Function ()
-> Method SpotLight Function ()
-> Method SpotLight Function ()
-> Method SpotLight () ()
-> Method SpotLight Bool ()
-> Method SpotLight (Bool, Bool) ()
-> Method SpotLight Vector3 Vector3
-> Object3D SpotLight
Method SpotLight Euler ()
Method SpotLight Matrix4 ()
Method SpotLight Quaternion ()
Method SpotLight Quaternion Quaternion
Method SpotLight Vector3 Vector3
forall arg.
(ToArgs arg, FromJSVal SpotLight) =>
Method SpotLight arg SpotLight
forall arg.
(ToArgs arg, FromJSVal SpotLight, Object3D arg) =>
Method SpotLight arg SpotLight
forall arg. (ToArgs arg, Triplet arg) => Method SpotLight arg ()
forall arg.
(ToArgs arg, Object3D arg, FromJSVal SpotLight) =>
Method SpotLight arg SpotLight
forall t.
(ToArgs SpotLight, FromJSVal SpotLight,
 Object3DCopyParams SpotLight t, ToArgs t) =>
Method SpotLight t SpotLight
forall arg.
(FromJSVal SpotLight, ToArgs arg) =>
Method SpotLight arg SpotLight
forall t.
(FromJSVal SpotLight, Object3DCloneParams t, ToArgs t) =>
Method SpotLight t SpotLight
forall object.
EventDispatcher object =>
Property object AnimationClip
-> Property object Bool
-> (forall material.
    (Material material, FromJSVal material) =>
    Property object material)
-> (forall material.
    (Material material, FromJSVal material) =>
    Property object material)
-> Property object Bool
-> ReadOnly object Int
-> ReadOnly object Bool
-> Property object Layers
-> Property object Matrix4
-> Property object Bool
-> Property object Matrix4
-> Property object Bool
-> Property object Bool
-> Property object Matrix4
-> Property object MisoString
-> Property object Matrix3
-> Property object Function
-> Property object Function
-> Property object Function
-> Property object Function
-> (forall return.
    (Object3D return, FromJSVal return) =>
    Property object return)
-> Property object Vector3
-> Property object Quaternion
-> Property object Bool
-> Property object Double
-> Property object Euler
-> Property object Vector3
-> Property object Vector3
-> Property object Object
-> Property object MisoString
-> Property object Bool
-> Property object Vector3
-> Property object Bool
-> Property object Bool
-> (forall arg.
    (ToArgs arg, FromJSVal object, Object3D arg) =>
    Method object arg object)
-> Method object Matrix4 ()
-> (FromJSVal object => Method object Quaternion object)
-> (forall arg.
    (FromJSVal object, ToArgs arg) =>
    Method object arg object)
-> (forall arg.
    (ToArgs arg, FromJSVal object) =>
    Method object arg object)
-> (forall t.
    (FromJSVal object, Object3DCloneParams t, ToArgs t) =>
    Method object t object)
-> (forall t.
    (ToArgs object, FromJSVal object, Object3DCopyParams object t,
     ToArgs t) =>
    Method object t object)
-> Method object Vector3 Vector3
-> Method object Quaternion Quaternion
-> Method object Vector3 Vector3
-> Method object Vector3 Vector3
-> Method object Vector3 Vector3
-> (forall arg. (ToArgs arg, Triplet arg) => Method object arg ())
-> Method object (Raycaster, JSVal) ()
-> (forall arg.
    (ToArgs arg, Object3D arg, FromJSVal object) =>
    Method object arg object)
-> (FromJSVal object => Method object () object)
-> (FromJSVal object => Method object (Vector3, Double) object)
-> (FromJSVal object => Method object (Vector3, Double) object)
-> (FromJSVal object => Method object Double object)
-> (FromJSVal object => Method object Double object)
-> (FromJSVal object => Method object Double object)
-> Method object (Vector3, Double) ()
-> Method object Euler ()
-> Method object Matrix4 ()
-> Method object Quaternion ()
-> Method object Object Object
-> (FromJSVal object => Method object (Vector3, Double) object)
-> (FromJSVal object => Method object Double object)
-> (FromJSVal object => Method object Double object)
-> (FromJSVal object => Method object Double object)
-> Method object Function ()
-> Method object Function ()
-> Method object Function ()
-> Method object () ()
-> Method object Bool ()
-> Method object (Bool, Bool) ()
-> Method object Vector3 Vector3
-> Object3D object
forall material.
(Material material, FromJSVal material) =>
Property SpotLight material
forall return.
(Object3D return, FromJSVal return) =>
Property SpotLight return
$canimations :: Property SpotLight AnimationClip
animations :: Property SpotLight AnimationClip
$ccastShadow :: Property SpotLight Bool
castShadow :: Property SpotLight Bool
$ccustomDepthMaterial :: forall material.
(Material material, FromJSVal material) =>
Property SpotLight material
customDepthMaterial :: forall material.
(Material material, FromJSVal material) =>
Property SpotLight material
$ccustomDistanceMaterial :: forall material.
(Material material, FromJSVal material) =>
Property SpotLight material
customDistanceMaterial :: forall material.
(Material material, FromJSVal material) =>
Property SpotLight material
$cfrustumCulled :: Property SpotLight Bool
frustumCulled :: Property SpotLight Bool
$cid :: ReadOnly SpotLight Int
id :: ReadOnly SpotLight Int
$cisObject3D :: ReadOnly SpotLight Bool
isObject3D :: ReadOnly SpotLight Bool
$clayers :: Property SpotLight Layers
layers :: Property SpotLight Layers
$cmatrix :: Property SpotLight Matrix4
matrix :: Property SpotLight Matrix4
$cmatrixAutoUpdate :: Property SpotLight Bool
matrixAutoUpdate :: Property SpotLight Bool
$cmatrixWorld :: Property SpotLight Matrix4
matrixWorld :: Property SpotLight Matrix4
$cmatrixWorldAutoUpdate :: Property SpotLight Bool
matrixWorldAutoUpdate :: Property SpotLight Bool
$cmatrixWorldNeedsUpdate :: Property SpotLight Bool
matrixWorldNeedsUpdate :: Property SpotLight Bool
$cmodelViewMatrix :: Property SpotLight Matrix4
modelViewMatrix :: Property SpotLight Matrix4
$cname :: Property SpotLight MisoString
name :: Property SpotLight MisoString
$cnormalMatrix :: Property SpotLight Matrix3
normalMatrix :: Property SpotLight Matrix3
$conAfterRender :: Property SpotLight Function
onAfterRender :: Property SpotLight Function
$conAfterShadow :: Property SpotLight Function
onAfterShadow :: Property SpotLight Function
$conBeforeRender :: Property SpotLight Function
onBeforeRender :: Property SpotLight Function
$conBeforeShadow :: Property SpotLight Function
onBeforeShadow :: Property SpotLight Function
$cparent :: forall return.
(Object3D return, FromJSVal return) =>
Property SpotLight return
parent :: forall return.
(Object3D return, FromJSVal return) =>
Property SpotLight return
$cposition :: Property SpotLight Vector3
position :: Property SpotLight Vector3
$cquaternion :: Property SpotLight Quaternion
quaternion :: Property SpotLight Quaternion
$creceiveShadow :: Property SpotLight Bool
receiveShadow :: Property SpotLight Bool
$crenderOrder :: Property SpotLight Double
renderOrder :: Property SpotLight Double
$crotation :: Property SpotLight Euler
rotation :: Property SpotLight Euler
$cscale :: Property SpotLight Vector3
scale :: Property SpotLight Vector3
$cup :: Property SpotLight Vector3
up :: Property SpotLight Vector3
$cuserData :: Property SpotLight Object
userData :: Property SpotLight Object
$cuuid :: Property SpotLight MisoString
uuid :: Property SpotLight MisoString
$cvisible :: Property SpotLight Bool
visible :: Property SpotLight Bool
$cdefaultUp :: Property SpotLight Vector3
defaultUp :: Property SpotLight Vector3
$cdefaultMatrixAutoUpdate :: Property SpotLight Bool
defaultMatrixAutoUpdate :: Property SpotLight Bool
$cdefaultMatrixWorldAutoUpdate :: Property SpotLight Bool
defaultMatrixWorldAutoUpdate :: Property SpotLight Bool
$cadd :: forall arg.
(ToArgs arg, FromJSVal SpotLight, Object3D arg) =>
Method SpotLight arg SpotLight
add :: forall arg.
(ToArgs arg, FromJSVal SpotLight, Object3D arg) =>
Method SpotLight arg SpotLight
$capplyMatrix4 :: Method SpotLight Matrix4 ()
applyMatrix4 :: Method SpotLight Matrix4 ()
$capplyQuaternion :: FromJSVal SpotLight => Method SpotLight Quaternion SpotLight
applyQuaternion :: FromJSVal SpotLight => Method SpotLight Quaternion SpotLight
$cattach :: forall arg.
(FromJSVal SpotLight, ToArgs arg) =>
Method SpotLight arg SpotLight
attach :: forall arg.
(FromJSVal SpotLight, ToArgs arg) =>
Method SpotLight arg SpotLight
$cclear :: forall arg.
(ToArgs arg, FromJSVal SpotLight) =>
Method SpotLight arg SpotLight
clear :: forall arg.
(ToArgs arg, FromJSVal SpotLight) =>
Method SpotLight arg SpotLight
$cclone :: forall t.
(FromJSVal SpotLight, Object3DCloneParams t, ToArgs t) =>
Method SpotLight t SpotLight
clone :: forall t.
(FromJSVal SpotLight, Object3DCloneParams t, ToArgs t) =>
Method SpotLight t SpotLight
$ccopy :: forall t.
(ToArgs SpotLight, FromJSVal SpotLight,
 Object3DCopyParams SpotLight t, ToArgs t) =>
Method SpotLight t SpotLight
copy :: forall t.
(ToArgs SpotLight, FromJSVal SpotLight,
 Object3DCopyParams SpotLight t, ToArgs t) =>
Method SpotLight t SpotLight
$cgetWorldPosition :: Method SpotLight Vector3 Vector3
getWorldPosition :: Method SpotLight Vector3 Vector3
$cgetWorldQuaternion :: Method SpotLight Quaternion Quaternion
getWorldQuaternion :: Method SpotLight Quaternion Quaternion
$cgetWorldScale :: Method SpotLight Vector3 Vector3
getWorldScale :: Method SpotLight Vector3 Vector3
$cgetWorldDirection :: Method SpotLight Vector3 Vector3
getWorldDirection :: Method SpotLight Vector3 Vector3
$clocalToWorld :: Method SpotLight Vector3 Vector3
localToWorld :: Method SpotLight Vector3 Vector3
$clookAt :: forall arg. (ToArgs arg, Triplet arg) => Method SpotLight arg ()
lookAt :: forall arg. (ToArgs arg, Triplet arg) => Method SpotLight arg ()
$craycast :: Method SpotLight (Raycaster, JSVal) ()
raycast :: Method SpotLight (Raycaster, JSVal) ()
$cremove :: forall arg.
(ToArgs arg, Object3D arg, FromJSVal SpotLight) =>
Method SpotLight arg SpotLight
remove :: forall arg.
(ToArgs arg, Object3D arg, FromJSVal SpotLight) =>
Method SpotLight arg SpotLight
$cremoveFromParent :: FromJSVal SpotLight => Method SpotLight () SpotLight
removeFromParent :: FromJSVal SpotLight => Method SpotLight () SpotLight
$crotateOnAxis :: FromJSVal SpotLight => Method SpotLight (Vector3, Double) SpotLight
rotateOnAxis :: FromJSVal SpotLight => Method SpotLight (Vector3, Double) SpotLight
$crotateOnWorldAxis :: FromJSVal SpotLight => Method SpotLight (Vector3, Double) SpotLight
rotateOnWorldAxis :: FromJSVal SpotLight => Method SpotLight (Vector3, Double) SpotLight
$crotateX :: FromJSVal SpotLight => Method SpotLight Double SpotLight
rotateX :: FromJSVal SpotLight => Method SpotLight Double SpotLight
$crotateY :: FromJSVal SpotLight => Method SpotLight Double SpotLight
rotateY :: FromJSVal SpotLight => Method SpotLight Double SpotLight
$crotateZ :: FromJSVal SpotLight => Method SpotLight Double SpotLight
rotateZ :: FromJSVal SpotLight => Method SpotLight Double SpotLight
$csetRotationFromAxisAngle :: Method SpotLight (Vector3, Double) ()
setRotationFromAxisAngle :: Method SpotLight (Vector3, Double) ()
$csetRotationFromEuler :: Method SpotLight Euler ()
setRotationFromEuler :: Method SpotLight Euler ()
$csetRotationFromMatrix :: Method SpotLight Matrix4 ()
setRotationFromMatrix :: Method SpotLight Matrix4 ()
$csetRotationFromQuaternion :: Method SpotLight Quaternion ()
setRotationFromQuaternion :: Method SpotLight Quaternion ()
$ctoJSON :: Method SpotLight Object Object
toJSON :: Method SpotLight Object Object
$ctranslateOnAxis :: FromJSVal SpotLight => Method SpotLight (Vector3, Double) SpotLight
translateOnAxis :: FromJSVal SpotLight => Method SpotLight (Vector3, Double) SpotLight
$ctranslateX :: FromJSVal SpotLight => Method SpotLight Double SpotLight
translateX :: FromJSVal SpotLight => Method SpotLight Double SpotLight
$ctranslateY :: FromJSVal SpotLight => Method SpotLight Double SpotLight
translateY :: FromJSVal SpotLight => Method SpotLight Double SpotLight
$ctranslateZ :: FromJSVal SpotLight => Method SpotLight Double SpotLight
translateZ :: FromJSVal SpotLight => Method SpotLight Double SpotLight
$ctraverse :: Method SpotLight Function ()
traverse :: Method SpotLight Function ()
$ctraverseVisible :: Method SpotLight Function ()
traverseVisible :: Method SpotLight Function ()
$ctraverseAncestors :: Method SpotLight Function ()
traverseAncestors :: Method SpotLight Function ()
$cupdateMatrix :: Method SpotLight () ()
updateMatrix :: Method SpotLight () ()
$cupdateMatrixWorld :: Method SpotLight Bool ()
updateMatrixWorld :: Method SpotLight Bool ()
$cupdateWorldMatrix :: Method SpotLight (Bool, Bool) ()
updateWorldMatrix :: Method SpotLight (Bool, Bool) ()
$cworldToLocal :: Method SpotLight Vector3 Vector3
worldToLocal :: Method SpotLight Vector3 Vector3
Object3D, ToObject SpotLight
ToJSVal SpotLight
Method SpotLight (MisoString, Function) ()
Method SpotLight Object ()
(ToObject SpotLight, ToJSVal SpotLight) =>
Method SpotLight (MisoString, Function) ()
-> Method SpotLight (MisoString, Function) ()
-> Method SpotLight (MisoString, Function) ()
-> Method SpotLight Object ()
-> EventDispatcher SpotLight
forall object.
(ToObject object, ToJSVal object) =>
Method object (MisoString, Function) ()
-> Method object (MisoString, Function) ()
-> Method object (MisoString, Function) ()
-> Method object Object ()
-> EventDispatcher object
$caddEventListener :: Method SpotLight (MisoString, Function) ()
addEventListener :: Method SpotLight (MisoString, Function) ()
$chasEventListener :: Method SpotLight (MisoString, Function) ()
hasEventListener :: Method SpotLight (MisoString, Function) ()
$cremoveEventListener :: Method SpotLight (MisoString, Function) ()
removeEventListener :: Method SpotLight (MisoString, Function) ()
$cdispatchEvent :: Method SpotLight Object ()
dispatchEvent :: Method SpotLight Object ()
EventDispatcher)
-----------------------------------------------------------------------------
instance FromJSVal SpotLight where
  fromJSVal :: JSVal -> IO (Maybe SpotLight)
fromJSVal = Maybe SpotLight -> IO (Maybe SpotLight)
forall a. a -> IO a
forall (f :: * -> *) a. Applicative f => a -> f a
pure (Maybe SpotLight -> IO (Maybe SpotLight))
-> (JSVal -> Maybe SpotLight) -> JSVal -> IO (Maybe SpotLight)
forall b c a. (b -> c) -> (a -> b) -> a -> c
. SpotLight -> Maybe SpotLight
forall a. a -> Maybe a
Just (SpotLight -> Maybe SpotLight)
-> (JSVal -> SpotLight) -> JSVal -> Maybe SpotLight
forall b c a. (b -> c) -> (a -> b) -> a -> c
. JSVal -> SpotLight
SpotLight
-----------------------------------------------------------------------------
class SpotLightParams t
instance SpotLightParams ()
instance SpotLightParams Int
instance SpotLightParams (Int, Double)
instance SpotLightParams (Int, Double, Double)
instance SpotLightParams (Int, Double, Double, Double)
instance SpotLightParams (Int, Double, Double, Double, Double)
instance SpotLightParams (Int, Double, Double, Double, Double, Double)
new :: (ToArgs t, SpotLightParams t) => t -> THREE.Three SpotLight
new :: forall t. (ToArgs t, SpotLightParams t) => t -> IO SpotLight
new = (JSVal -> SpotLight) -> MisoString -> t -> IO SpotLight
forall args con.
ToArgs args =>
(JSVal -> con) -> MisoString -> args -> Three con
THREE.new JSVal -> SpotLight
SpotLight MisoString
"SpotLight" 
-----------------------------------------------------------------------------
-- Read-only properties
-----------------------------------------------------------------------------
isSpotLight :: ReadOnly SpotLight Bool
isSpotLight :: ReadOnly SpotLight Bool
isSpotLight = MisoString -> ReadOnly SpotLight Bool
forall object return.
(FromJSVal return, ToObject object) =>
MisoString -> ReadOnly object return
readonly MisoString
"isSpotLight" 
-----------------------------------------------------------------------------
-- Properties
-----------------------------------------------------------------------------
angle :: Property SpotLight Double
angle :: Property SpotLight Double
angle = MisoString -> Property SpotLight Double
forall object field.
(ToObject object, ToJSVal field, FromJSVal field) =>
MisoString -> Property object field
property MisoString
"angle" 
-----------------------------------------------------------------------------
decay :: Property SpotLight Double
decay :: Property SpotLight Double
decay = MisoString -> Property SpotLight Double
forall object field.
(ToObject object, ToJSVal field, FromJSVal field) =>
MisoString -> Property object field
property MisoString
"decay" 
-----------------------------------------------------------------------------
distance :: Property SpotLight Double
distance :: Property SpotLight Double
distance = MisoString -> Property SpotLight Double
forall object field.
(ToObject object, ToJSVal field, FromJSVal field) =>
MisoString -> Property object field
property MisoString
"distance" 
-----------------------------------------------------------------------------
penumbra :: Property SpotLight Double
penumbra :: Property SpotLight Double
penumbra = MisoString -> Property SpotLight Double
forall object field.
(ToObject object, ToJSVal field, FromJSVal field) =>
MisoString -> Property object field
property MisoString
"penumbra" 
-----------------------------------------------------------------------------
power :: Property SpotLight Double
power :: Property SpotLight Double
power = MisoString -> Property SpotLight Double
forall object field.
(ToObject object, ToJSVal field, FromJSVal field) =>
MisoString -> Property object field
property MisoString
"power" 
-----------------------------------------------------------------------------
target :: (Object3D object, FromJSVal object) => Property SpotLight object
target :: forall return.
(Object3D return, FromJSVal return) =>
Property SpotLight return
target = MisoString -> Property SpotLight object
forall object field.
(ToObject object, ToJSVal field, FromJSVal field) =>
MisoString -> Property object field
property MisoString
"target" 
-----------------------------------------------------------------------------
-- Optional properties
-----------------------------------------------------------------------------
map :: (TextureClass texture, FromJSVal texture) => Property SpotLight (Maybe texture)
map :: forall texture.
(TextureClass texture, FromJSVal texture) =>
Property SpotLight (Maybe texture)
map = MisoString -> Property SpotLight (Maybe texture)
forall object field.
(ToObject object, ToJSVal field, FromJSVal field) =>
MisoString -> Property object (Maybe field)
optional MisoString
"map"
-----------------------------------------------------------------------------