Merge pull request #1279 from Disar/master

gpu_dof.fstop  > dof.aperture_fstop
This commit is contained in:
Lubos Lenco 2019-05-24 09:28:33 +02:00 committed by GitHub
commit 147b9e5682
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -568,7 +568,7 @@ const vec3 compoFogColor = vec3(""" + str(round(rpdat.arm_fog_color[0] * 100) /
if len(bpy.data.cameras) > 0 and focus_distance > 0.0:
f.write(
"""const float compoDOFDistance = """ + str(round(focus_distance * 100) / 100) + """;
const float compoDOFFstop = """ + str(round(bpy.data.cameras[0].gpu_dof.fstop * 100) / 100) + """;
const float compoDOFFstop = """ + str(round(bpy.data.cameras[0].dof.aperture_fstop * 100) / 100) + """;
const float compoDOFLength = 160.0;
""") # str(round(bpy.data.cameras[0].lens * 100) / 100)