Maven module :un.engine : engine-opengl :
Class : un.engine.opengl.light.Lights
Extends/Implements : -
Subclasses : -

Utils for lights.
author  Johann Sorel


Variables : -
Functions : phong, blinnPhong




Phong light model.
param  ambient color
param  diffuse color
param  specular color
param  lightPosition in camera space
param  lightShininess
param  fragmentPosition in camera space
param  fragmentNormal in camera space, expected to be normalized
param  buffer to store result, can be null
return  Tuple, same as buffer is not null, new tuple otherwise
public float[] phong (float[] ambient, float[] diffuse, float[] specular, Vector lightPosition, float lightShininess, Vector fragmentPosition, Vector fragmentNormal, float[] buffer)


Blinn-Phong light model.
param  ambient color
param  diffuse color
param  specular color
param  lightPosition in camera space
param  lightShininess
param  fragmentPosition in camera space
param  fragmentNormal in camera space, expected to be normalized
param  buffer to store result, can be null
return  Tuple, same as buffer is not null, new tuple otherwise
public float[] blinnPhong (float[] ambient, float[] diffuse, float[] specular, Vector lightPosition, float lightShininess, Vector fragmentPosition, Vector fragmentNormal, float[] buffer)