com.io7m.r2.core

## Interface R2LightSphericalSingleWritableType

- All Superinterfaces:
    R2LightSingleWritableType, R2LightSphericalWritableType, R2LightVolumeSingleWritableType, R2LightWritableType
  All Known Subinterfaces:
    R2LightSphericalSingleType
  All Known Implementing Classes:
    R2LightSphericalSingle

      public interface R2LightSphericalSingleWritableType
      extends R2LightSphericalWritableType, R2LightVolumeSingleWritableType

  The type of writable single-instance spherical lights.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `com.io7m.jtensors.parameterized.PVector3FType<R2SpaceWorldType>` | `originPositionWritable()`
    `void` | `setGeometryScaleFactor(float f)` Set the geometry scale factor.

    - ### Methods inherited from interface com.io7m.r2.core.R2LightSphericalWritableType

      `setFalloff, setRadius`

    - ### Methods inherited from interface com.io7m.r2.core.R2LightWritableType

      `colorWritable, setIntensity`

- - ### Method Detail

    - #### originPositionWritable

          com.io7m.jtensors.parameterized.PVector3FType<R2SpaceWorldType> originPositionWritable()

      Returns:
        The position of the origin of the light in world-space

    - #### setGeometryScaleFactor

          void setGeometryScaleFactor(float f)

      Set the geometry scale factor. The final rendered scale of the light volume geometry is given by `R2LightSphericalReadableType.radius()` * `f`. This is used to artificially enlarge the light volume to account for, for example, the fact that a low-polygon approximation of a sphere will typically have a smaller volume than a real sphere would.
      Parameters:
        `f` - The scale factor

Copyright © 2016 <code@io7m.com> http://io7m.com