Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PhongMaterial.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
4
6{
11 public class PhongMaterial
12 {
13 private readonly float ambientReflectionConstant;
14 private readonly float diffuseReflectionConstant;
15 private readonly float specularReflectionConstant;
16 private readonly float shininess;
17
28 float Shininess)
29 {
30 this.ambientReflectionConstant = AmbientReflectionConstant;
31 this.diffuseReflectionConstant = DiffuseReflectionConstant;
32 this.specularReflectionConstant = SpecularReflectionConstant;
33 this.shininess = Shininess;
34 }
35
39 public float AmbientReflectionConstant => this.ambientReflectionConstant;
40
44 public float DiffuseReflectionConstant => this.diffuseReflectionConstant;
45
49 public float SpecularReflectionConstant => this.specularReflectionConstant;
50
54 public float Shininess => this.shininess;
55 }
56}
Contains information about a material, as used in the Phong reflection model. https://en....
float AmbientReflectionConstant
Ratio of reflection of the ambient term present in all points in the scene rendered.
float DiffuseReflectionConstant
Ratio of reflection of the diffuse term of incoming light.
float Shininess
Shininess coefficient.
float SpecularReflectionConstant
Ratio of reflection of the specular term of incoming light.
PhongMaterial(float AmbientReflectionConstant, float DiffuseReflectionConstant, float SpecularReflectionConstant, float Shininess)
Contains information about a material, as used in the Phong reflection model. https://en....