Package com.base.engine.rendering

Examples of com.base.engine.rendering.Shader


  public SpotLight(Vector3f color, float intensity, Attenuation attenuation, float cutoff)
  {
    super(color, intensity, attenuation);
    this.m_cutoff = cutoff;

    SetShader(new Shader("forward-spot"));
  }
View Full Code Here


{
  public DirectionalLight(Vector3f color, float intensity)
  {
    super(color, intensity);

    SetShader(new Shader("forward-directional"));
  }
View Full Code Here

    float b = attenuation.GetLinear();
    float c = attenuation.GetConstant() - COLOR_DEPTH * GetIntensity() * GetColor().Max();

    this.m_range = (float)((-b + Math.sqrt(b * b - 4 * a * c))/(2 * a));

    SetShader(new Shader("forward-point"));
  }
View Full Code Here

TOP

Related Classes of com.base.engine.rendering.Shader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.