Skip to content

Commit

Permalink
fix roughness texture
Browse files Browse the repository at this point in the history
  • Loading branch information
Tzu-Mao Li committed Feb 4, 2019
1 parent 8e8e3cc commit d7ef197
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_svbrdf.py
Expand Up @@ -76,7 +76,11 @@ def gradient(h,x,y):
fov = fov,
clip_near = clip_near,
resolution = resolution)

if pyredner.get_use_gpu():
diffuse = diffuse.cuda()
specular = specular.cuda()
roughness = roughness.cuda()
print(roughness.dim())
mat_perlin = pyredner.Material(\
diffuse_reflectance = diffuse,
specular_reflectance = specular,
Expand Down

0 comments on commit d7ef197

Please sign in to comment.