X3DLightNode : X3DChildNode {
  SFFloat [in,out] ambientIntensity 0     [0,1]
  SFColor [in,out] color            1 1 1 [0,1]
  SFBool  [in,out] global           FALSE
  SFFloat [in,out] intensity        1     [0,1]
  SFBool  [in,out] on               TRUE

  # Castle Game Engine extensions
  SFBool     []            shadows               FALSE
  SFBool     [in,out]      shadowVolumes         FALSE
  SFBool     [in,out]      shadowVolumesMain     FALSE       # meaningfull only when shadowVolumes = TRUE
  SFFloat    [in,out]      projectionNear        1           # > 0
  SFFloat    [in,out]      projectionFar         100         # anything > projectionNear
  SFVec3f    [in,out]      up                    0 1 0
  SFNode     []            defaultShadowMap      NULL        # [GeneratedShadowMap]
  MFNode     []            effects               []          # [Effect]
}

DirectionalLight : X3DLightNode {
  # Commented out, for CGE this is special in TAbstractDirectionalLightNode
  ### SFVec3f [in,out] direction        0 0 -1 (-Inf,Inf)
  # NOTE: global by default is FALSE

  # Castle Game Engine extensions
  # Commented out, for CGE this is special in TAbstractDirectionalLightNode
  ### SFVec4f    [in,out]      projectionRectangle   -10 10 -10 10  # left, right, bottom, top; must be left < right and bottom < top
  # Commented out, for CGE this is special in TAbstractDirectionalLightNode
  ### SFVec3f    [in,out]      projectionLocation    0 0 0          # affected by node's transformation
}

PointLight : X3DLightNode {
  # Commented out, for CGE this is special in TAbstractDirectionalLightNode
  ### SFVec3f [in,out] attenuation      1 0 0 [0,Inf)
  # NOTE: global by default is TRUE
  # Commented out, for CGE this is special in TAbstractDirectionalLightNode
  ### SFVec3f [in,out] location         0 0 0 (-Inf,Inf)
  # Commented out, for CGE this is special in TAbstractDirectionalLightNode
  ### SFFloat [in,out] radius           100   [0,Inf)
}

SpotLight : X3DLightNode {
  SFVec3f [in,out] attenuation      1 0 0    [0,Inf)
  SFFloat [in,out] beamWidth        Pi/2      (0,Pi/2]
  SFFloat [in,out] cutOffAngle      Pi/4      (0,Pi/2]
  SFVec3f [in,out] direction        0 0 -1   (-Inf,Inf)
  # NOTE: global by default is TRUE
  SFVec3f [in,out] location         0 0 0    (-Inf,Inf)
  SFFloat [in,out] radius           100      [0,Inf)

  # Castle Game Engine extensions
  SFFloat    [in,out]      projectionAngle       0
}
