Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PhongIntensity.cs
1using System;
2
4{
9 public class PhongIntensity
10 {
11 private readonly float red;
12 private readonly float green;
13 private readonly float blue;
14 private readonly float alpha;
15
24 public PhongIntensity(float Red, float Green, float Blue, float Alpha)
25 {
26 this.red = Red;
27 this.green = Green;
28 this.blue = Blue;
29 this.alpha = Alpha;
30 }
31
35 public float Red => this.red;
36
40 public float Green => this.green;
41
45 public float Blue => this.blue;
46
50 public float Alpha => this.alpha;
51
55 public bool Opaque => this.alpha >= 255;
56 }
57}
Contains information about the intensity of a light component, as used in the Phong reflection model....
PhongIntensity(float Red, float Green, float Blue, float Alpha)
Contains information about the intensity of a light component, as used in the Phong reflection model....
bool Opaque
If shader is 100% opaque.