Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PhongLightSource.cs
1using System;
2using System.Numerics;
3
5{
10 public class PhongLightSource
11 {
12 private readonly PhongIntensity diffuse;
13 private readonly PhongIntensity specular;
14 private Vector3 position;
15
24 {
25 this.diffuse = Diffuse;
26 this.specular = Specular;
27 this.position = Position;
28 }
29
33 public PhongIntensity Diffuse => this.diffuse;
34
38 public PhongIntensity Specular => this.specular;
39
43 public Vector3 Position => this.position;
44
48 public bool Opaque => this.diffuse.Opaque && this.specular.Opaque;
49 }
50}
Contains information about the intensity of a light component, as used in the Phong reflection model....
Contains information about a light source, as used in the Phong reflection model. https://en....
bool Opaque
If shader is 100% opaque.
Vector3 Position
Position of light source..
PhongLightSource(PhongIntensity Diffuse, PhongIntensity Specular, Vector3 Position)
Contains information about a light source, as used in the Phong reflection model. https://en....
PhongIntensity Diffuse
Diffuse intensity.
PhongIntensity Specular
Specular intensity.