package gameEngine.meshs;

import org.joml.Vector3f;

public class Material {
    public Vector3f color;
    // Reflectance should be between 0 and 1
    public float reflectance;
    
    public Material(Vector3f color, float reflectance){
    	this.color = color;
    	this.reflectance= reflectance;
    }
    
    public Material(Vector3f color){
    	this.color = color;
    	this.reflectance= 0f;
    }
    
    public Material(float reflectance){
    	this.color = new Vector3f(1f,1.f,1.f);
    	this.reflectance= reflectance;
    }
    
    public Material(){
    	this.color = new Vector3f(1.f,1.f,1.f);
    	this.reflectance= 0;
    }
    
    public Vector3f getColor() {
    	return color;
    }
    
    public float getReflectance() {
    	return reflectance;
    }
}

@@ -391,16 +391,19 @@
 ctance= 
+100
 0f;%0A    
@@ -631,16 +631,19 @@
 ctance= 
+100
 0;%0A    %7D

Change default reflectance