{"size": 793, "ext": "js", "max_stars_repo_path": "src/renderer/rendermaterial.js", "max_stars_repo_name": "skylark-integration/skylark-jsmodeler", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/renderer/rendermaterial.js", "max_issues_repo_name": "skylark-integration/skylark-jsmodeler", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/renderer/rendermaterial.js", "max_forks_repo_name": "skylark-integration/skylark-jsmodeler", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.8684210526, "max_line_length": 81, "alphanum_fraction": 0.6544766709}
define(["../core/jsm"],function(JSM){
	JSM.RenderMaterialFlags = {
		Point : 1,
		Line : 2,
		Triangle : 4,
		Textured : 8,
		Transparent : 16
	};

	JSM.RenderMaterial = function (type, parameters)
	{
		this.type = type;
		this.ambient = [0.0, 0.8, 0.0];
		this.diffuse = [0.0, 0.8, 0.0];
		this.specular = [0.0, 0.0, 0.0];
		this.shininess = 0.0;
		this.opacity = 1.0;
		this.reflection = 0.0;
		this.singleSided = false;
		this.pointSize = 0.1;
		this.texture = null;
		JSM.CopyObjectProperties (parameters, this, true);
	};

	JSM.RenderMaterial.prototype.SetType = function (type)
	{
		this.type = type;
	};

	JSM.RenderMaterial.prototype.SetBuffers = function (textureBuffer, textureImage)
	{
		this.textureBuffer = textureBuffer;
		this.textureImage = textureImage;
	};

	return JSM;
});
