Commit 8be0db8d authored by Libor Moravčík's avatar Libor Moravčík
Browse files

float type changed to scalar

parent 9fd7c9f0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -328,9 +328,9 @@ vec3 barycentric(const vec3 &a, const vec3 &b, const vec3 &c, const vec3 &p)
	// Unnormalized triangle normal
	vec3 m = cross(b - a, c - a);
	// Nominators and one-over-denominator for u and v ratios
	float nu, nv, ood;
	scalar nu, nv, ood;
	// Absolute components for determining projection plane
	float x = std::abs(m.x), y = std::abs(m.y), z = std::abs(m.z);
	scalar x = std::abs(m.x), y = std::abs(m.y), z = std::abs(m.z);
	// Compute areas in plane of largest projection
	if (x >= y && x >= z) 
	{