Exemplo n.º 1
0
spotlight::spotlight(const RGBA& color, const FLOAT3& position, const FLOAT3& direction, const float& angle, const float& softAngle) {
	m_color = new RGBA(color);
	m_position = new FLOAT3(position);
	m_direction = new FLOAT3(direction.normalize());
	m_angle = new float(angle);
	m_softAngle = new float(softAngle);
}
Exemplo n.º 2
0
plane::plane(const colordata& colors,
			 const FLOAT3& pos,
			 const FLOAT3& normal) {
	m_colors = new colordata(colors);
	m_pos = new FLOAT3(pos);
	m_norm = new FLOAT3(normal.normalize());
	m_d = new float(normal.dot(pos));
}