2026-04-11 01:48:53 -04:00
|
|
|
import org.joml.Vector3f;
|
|
|
|
|
|
|
|
|
|
public class DirectionalLight {
|
|
|
|
|
public Vector3f direction;
|
2026-04-11 19:21:13 -05:00
|
|
|
|
|
|
|
|
public Vector3f ambient;
|
|
|
|
|
public Vector3f diffuse;
|
|
|
|
|
public Vector3f specular;
|
2026-04-11 01:48:53 -04:00
|
|
|
|
|
|
|
|
public DirectionalLight (
|
|
|
|
|
Vector3f direction,
|
2026-04-11 19:21:13 -05:00
|
|
|
Vector3f ambient,
|
|
|
|
|
Vector3f diffuse,
|
|
|
|
|
Vector3f specular) {
|
2026-04-11 01:48:53 -04:00
|
|
|
this.direction = direction;
|
2026-04-11 19:21:13 -05:00
|
|
|
this.ambient = ambient;
|
|
|
|
|
this.diffuse = diffuse;
|
|
|
|
|
this.specular = specular;
|
2026-04-11 01:48:53 -04:00
|
|
|
}
|
|
|
|
|
}
|