All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.treblereel.gwt.three4g.lights.HemisphereLight Maven / Gradle / Ivy

package org.treblereel.gwt.three4g.lights;

import jsinterop.annotations.JsType;
import org.treblereel.gwt.three4g.math.Color;
import org.treblereel.gwt.three4g.math.Vector3;

/**
 * A light source positioned directly above the scene, with color fading from the sky color to the ground color.
 * 

* This light cannot be used to cast shadows. * * @author Dmitrii Tikhomirov * Created by treblereel on 4/25/18. */ @JsType(isNative = true, namespace = "THREE") public class HemisphereLight extends Light { /** * This is set to undefined in the constructor as hemisphere lights cannot cast shadows. */ public boolean castShadow; /** * The light's sky color, as passed in the constructor. Default is a new Color set to white (0xffffff). */ public Color color; /** * The light's ground color, as passed in the constructor. Default is a new Color set to white (0xffffff). */ public Color groundColor; /** * Used to check whether this or derived classes are hemisphere lights. Default is true. * You should not change this, as it used internally for optimisation. */ public boolean isHemisphereLight; /** * This is set equal to Object3D.DefaultUp (0, 1, 0), so that the light shines from the top down. */ public Vector3 position; /** * Creates a new HemisphereLight. */ public HemisphereLight() { } /** * @param skyColor - hexadecimal color of the sky. Default is 0xffffff. */ public HemisphereLight(int skyColor) { } /** * @param skyColor - hexadecimal color of the sky. Default is 0xffffff. * @param groundColor - hexadecimal color of the ground. Default is 0xffffff. */ public HemisphereLight(int skyColor, float groundColor) { } /** * @param skyColor - hexadecimal color of the sky. Default is 0xffffff. * @param groundColor - hexadecimal color of the ground. Default is 0xffffff. * @param intensity - numeric value of the light's strength/intensity. Default is 1. */ public HemisphereLight(int skyColor, int groundColor, float intensity) { } /** * Copies the value of color, intensity and groundColor from the source light into this one. * * @param source instance of HemisphereLight * @return instance of HemisphereLight */ public native HemisphereLight copy(HemisphereLight source); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy