diff options
author | Ton Roosendaal <ton@blender.org> | 2003-12-24 01:31:48 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-12-24 01:31:48 +0300 |
commit | 8fbff1a3b7c2c85591681f2682b0343b70dc1853 (patch) | |
tree | 3838e5c7b61f631dc5a1569c0d50d81e7b27e171 /source/blender/makesdna | |
parent | 4d8fce856867f7755e91de96f3cc2030147e2100 (diff) |
- Fresnel V4.0
Based on feedback (thnx phase!) I found a big disadvantage of the 'real'
fresnel formula. It doesnt degrade to 0.0, causing 2-3 times too many
rays being fired compared to the previous one. So; a lot slower.
Now committed is a hybrid which allows (close to) real, and nice artistic
freedom, *and* it really goes to 0.0 and 1.0, assisting nicely in optimal
render times.
A real doc how it works (with pics) will be made before real release.
- Fixed bug in raytrace: the first renderpass didn't use fresnel for mirror.
- Fixed bug in previewrender, now it closer matches how fresnel renders
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_material_types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_material_types.h b/source/blender/makesdna/DNA_material_types.h index d75cce4e4b8..f81f79f2b25 100644 --- a/source/blender/makesdna/DNA_material_types.h +++ b/source/blender/makesdna/DNA_material_types.h @@ -57,8 +57,8 @@ typedef struct Material { float amb, emit, ang, spectra, ray_mirror; float alpha, ref, spec, zoffs, add; float translucency; - float fresnel_mir; - float fresnel_tra; + float fresnel_mir, fresnel_mir_i; + float fresnel_tra, fresnel_tra_i; short ray_depth, ray_depth_tra; short har; char seed1, seed2; |