Fix error with float suffixes

This commit is contained in:
Matt Pharr
2011-09-02 13:09:25 -07:00
parent 99221f7d17
commit b5bfa43e92

View File

@@ -240,7 +240,7 @@ static float
raymarch(float density[], int nVoxels[3], const Ray &ray) {
float rayT0, rayT1;
float3 pMin(.3f, -.2f, .3f), pMax(1.8f, 2.3f, 1.8f);
float3 lightPos(-1f, 4f, 1.5f);
float3 lightPos(-1.f, 4.f, 1.5f);
if (!IntersectP(ray, pMin, pMax, &rayT0, &rayT1))
return 0.;