public class PointLight extends Light implements HasRaytracingPhysicalAttenuation, HasIntensity
MeshLambertMaterial
or MeshPhongMaterial
.
PointLight light = new PointLight( 0xff0000, 1, 100 );
light.getPosition().set( 50, 50, 50 );
getScene().add( light );
Modifier and Type | Class and Description |
---|---|
static class |
PointLight.UniformPoint |
Light.UniformLight
Object3D.ObjectHandler, Object3D.Traverse
__webglActive, __webglInit, _modelViewMatrix, _normalMatrix, DefaultUp
Constructor and Description |
---|
PointLight(int hex) |
PointLight(int hex,
double intensity) |
PointLight(int hex,
double intensity,
double distance) |
Modifier and Type | Method and Description |
---|---|
PointLight |
clone()
Creates a new clone of this object and all descendants.
|
double |
getDistance() |
double |
getIntensity()
Gets Light's intensity.
|
boolean |
isPhysicalAttenuation() |
void |
setDistance(double distance) |
void |
setIntensity(double intensity)
Sets Light's intensity.
|
void |
setPhysicalAttenuation(boolean isPhysicalAttenuation) |
void |
setupRendererLights(RendererLights zlights,
boolean isGammaInput) |
add, add, applyMatrix, clone, clone, getChildren, getChildrenByClass, getId, getMatrix, getMatrixWorld, getName, getObjectById, getObjectByName, getParent, getPosition, getQuaternion, getRenderDepth, getRotation, getScale, getUp, getWorldDirection, getWorldDirection, getWorldPosition, getWorldPosition, getWorldQuaternion, getWorldQuaternion, getWorldRotation, getWorldRotation, getWorldScale, getWorldScale, isCastShadow, isFrustumCulled, isMatrixAutoUpdate, isMatrixWorldNeedsUpdate, isReceiveShadow, isRotationAutoUpdate, isVisible, localToWorld, lookAt, remove, remove, rotateOnAxis, rotateX, rotateY, rotateZ, setCastShadow, setChildren, setFrustumCulled, setHandler, setMatrix, setMatrixAutoUpdate, setMatrixWorld, setMatrixWorldNeedsUpdate, setName, setParent, setPosition, setQuaternion, setReceiveShadow, setRenderDepth, setRotation, setRotationAutoUpdate, setRotationFromAxisAngle, setRotationFromEuler, setRotationFromMatrix, setRotationFromQuaternion, setScale, setUp, setVisible, toString, translateOnAxis, translateX, translateY, translateZ, traverse, traverseVisible, updateMatrix, updateMatrixWorld, worldToLocal
public PointLight(int hex)
public PointLight(int hex, double intensity)
public PointLight(int hex, double intensity, double distance)
public double getIntensity()
HasIntensity
getIntensity
in interface HasIntensity
public void setIntensity(double intensity)
HasIntensity
setIntensity
in interface HasIntensity
public void setDistance(double distance)
public double getDistance()
public boolean isPhysicalAttenuation()
isPhysicalAttenuation
in interface HasRaytracingPhysicalAttenuation
public void setPhysicalAttenuation(boolean isPhysicalAttenuation)
setPhysicalAttenuation
in interface HasRaytracingPhysicalAttenuation
public PointLight clone()
Object3D
public void setupRendererLights(RendererLights zlights, boolean isGammaInput)
setupRendererLights
in class Light